how to set time interval for every 3000 in code example
Example 1: setinterval javascript
setInterval(function(){
console.log("Hello");
console.log("World");
}, 2000); //repeat every 2s
Example 2: settimeout function
setTimeout(function(){
$('#overlay'). modal('hide')
}, 5000);
//#overlay will be the ID of modal which you want to hide or show modal