JSFiddle - React, Tailwind, and code Playground

by LyndseyB

JavaScript

var start = +new Date();  // log start timestamp
var i;

for(i=0;i<1000;i+=1) {
    console.log(i % 2 !== 0);
}


var end =  +new Date();  // log end timestamp
var diff = end - start;
console.log(diff);