javascript how do you repeat a function code example
Example 1: repeat js
repeatStr = (n, s) => s.repeat(n);
Example 2: repeat a function javascript
setInterval(function(){
console.log("Hello");
console.log("World");
}, 2000); //repeat every 2s