[Solved] Which is the fastest way to loop? [for curiosity]

[ad_1]

Performing tests i discover that the for loop is the better option for this situation:

for(var i = 0; i < 1000000; ++i){

      // Each iteration of the loop will make i
      // have a different value inside the loop

 }

And for measure the time i’m using console.time() and console.timeEnd()

[ad_2]

solved Which is the fastest way to loop? [for curiosity]