JSFiddle - React, Tailwind, and code Playground
by Nikola Mihin
JavaScript
var a = performance.now();
myArray = [1,1,5,4,5,6,7,8,9];
var len = myArray.length;
/*
for (var i = 0, len = myArray.length; i < len; i++) {
console.log(i);
}
*/
i = 1;
while(len--){
console.log (myArray[i]);
i++;
}
//var b = performance.now();
//alert('It took ' + (b - a) + ' ms.');