JSFiddle - React, Tailwind, and code Playground
by Paulpro
JavaScript
// Alert a message one tenth of a second from now
setTimeout(function(){
alert('Alert this after one tenth of a second');
}, 100);
// Loop for two seconds
for(var start = (new Date).getTime(); (new Date).getTime() < start + 2000;);
alert('Loop has finished');