how to do a repeat loop in 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