JSFiddle - React, Tailwind, and code Playground

by Ishank Dubey

HTML

<button id='button'>twst</button>

JavaScript

document.getElementById('button').addEventListener('click',function(){
alert('ddd');
})

var aDate = Date.now();
while(new Date() - aDate < 3000){
 console.log('while loop started');
}
 console.log('while loop ended');