javascript set timeojut code example
Example 1: javascript settimeout
setTimeout(function(){ alert("Hello"); }, 3000);
Example 2: js settimeout
setTimeout(() => { alert('Hello') }, 1000)
Example 3: javascript setinterval
setInterval(function() {
//Your code
}, 1000); //Every 1000ms = 1sec