js setinterval api code example
Example 1: js setinterval
function func(){
console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every second
Example 2: js setinterval
setInterval(function(){ alert("Hello"); }, 3000);
function func(){
console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every second
setInterval(function(){ alert("Hello"); }, 3000);