JavaScript SetTimeout
setTimeout(function(){ alert("Hello"); }, 3000);
Bald Eagle
setTimeout(function(){ alert("Hello"); }, 3000);
setInterval(function(){
//this code runs every second
}, 1000);
setInterval(function(){
console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 seconds
setTimeout(function(){
//code goes here
}, 2000); //Time before execution
setTimeout(() => { alert('Hello') }, 1000)
The setInterval() method calls a function at specified intervals (in milliseconds).