String repeat.md 220 B

8 kyu - String repeat - Authored by wichu

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

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