JavaScript can be slower than Java several times
JavaScript seems fast because of its efficient network and disk I/O operations

JavaScripts excels at I/O operations, but it is not the best option for calculations. To demonstrate this well-known fact, I will calculate 40th Fibonacci number using an inefficient algorithm involving lots of operations: