setinterval true code example
Example: setinterval 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