Message from JavaScript discussions

October 2018

— The engine should cache it

— 

Then why author cached while loop? it looks like he wanted to prove himself that while loop is faster and then retreated

— Does it matter?

— Modify it if you want, we can retest and see if anything happens to the performance

— For loops are faster

— No

— Https://jsperf.com/simple-loops-ex

— For loops have more machinery, are more complex

— So they are slower

— 404

— Updated

— While beats for in chrome for me