setInterval jQuery
setInterval(function(){
// stuff needs to be done
}, 3000);
Naive Chief
setInterval(function(){
// stuff needs to be done
}, 3000);
setTimeout(function(){ alert("Hello"); }, 3000);
setInterval(function(){
console.log("Oooo Yeaaa!");
}, 2000);//run this thang every 2 seconds
function func(){
console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every second
setInterval(function() {
//Your code
}, 1000); //Every 1000ms = 1sec