Alert “hello” every 3 seconds:

setInterval(function () {alert(“Hello”)}, 3000);

Basic setTimeout() Example

setTimeout(function() {
// Do something after 5 seconds
}, 5000);
 
For More Example :
screenshot_44