Advertisement
Spocoman

01. Repeat String

Jan 24th, 2022
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve (string, count) {
  2.  
  3.     function repeatString() {
  4.         return `${string.repeat(Number(count))}`;
  5.     }
  6.     console.log(repeatString());
  7.    
  8. }
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement