— 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
— For loops have more machinery, are more complex
— So they are slower
— While beats for in chrome for me