Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 230 Bytes

String repeat.md

File metadata and controls

6 lines (4 loc) · 230 Bytes

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

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

solution