js how to set an interval for a method code example
Example: js setinterval
function func(){
console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every second
function func(){
console.log("Ran")
}
setInterval(func,1000)//Runs the "func" function every second