Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 251 Bytes

(8 kyu) String repeat.md

File metadata and controls

10 lines (7 loc) · 251 Bytes

String repeat (8 kyu)

https://www.codewars.com/kata/string-repeat

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

repeatStr(6, "I") // "IIIIII"
repeatStr(5, "Hello") // "HelloHelloHelloHelloHello"