how to get a function to repeat itself js code example
Example: repeat a function javascript
setInterval(function(){
console.log("Hello");
console.log("World");
}, 2000); //repeat every 2s
setInterval(function(){
console.log("Hello");
console.log("World");
}, 2000); //repeat every 2s