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


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()

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