JSFiddle - React, Tailwind, and code Playground

by hbsto

JavaScript

(function(window){

var start_time = $.now(),
    nNumber = 0,
    i = 0,
    intv = window.setInterval(function(){ nNumber++ }, 100);

for( i=0; i<1000000000; i++ ){ /* ... */ }

window.clearInterval( intv );

$('body').html('nNumber = '+nNumber+'<br/>elapsed time = '+(($.now()-start_time)));
                                          
})(this);