1let string = 'Plumbus'
2let count = 3
3
4string.repeat(count); // -> 'PlumbusPlumbusPlumbus'
1setInterval(function(){
2 console.log("Hello");
3 console.log("World");
4}, 2000); //repeat every 2s
1function repeatStr (n, s) {
2 return s.repeat(n)
3}
4/////////////////////////////similar///////////////////////////////////////////
5repeatStr = (n, s) => s.repeat(n);