js js setinterval code example
Example: javascript setinterval
setInterval(function(){
console.log("print this once every 3 second");
}, 3000);//run this thang every 3 seconds
setInterval(function(){
console.log("print this once every 3 second");
}, 3000);//run this thang every 3 seconds