AlfatArdiansa

Codewars w Sandhika 9

Oct 31st, 2020
520
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const repeatStr = (n, s) => s.repeat(n);
  2.  
  3. console.log(repeatStr(3, "*"), "***");
  4. console.log(repeatStr(5, "#"), "#####");
  5. console.log(repeatStr(2, "ha "), "ha ha ");
RAW Paste Data