Javascript : setTimeout
setTimeout
Wait 1 second before doing something.
setTimeout(function(){
}, 1000);
setInterval
Repeat every 3 seconds.
setInterval(function(){
alert("Hello");
}, 3000);
Wait 1 second before doing something.
setTimeout(function(){
}, 1000);
Repeat every 3 seconds.
setInterval(function(){
alert("Hello");
}, 3000);