javascript interval loop 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