매일매일개발/Codewars

codewars #47 String repeat (8kyu)

개하싶 2018. 5. 23. 21:37

#47 String repeat 


Write a function called repeatStr which repeats the given string string exactly n times.


repeatStr(6, "I") // "IIIIII"

repeatStr(5, "Hello") // "HelloHelloHelloHelloHello"