Write a function called repeatStr which repeats the given string string exactly n times.
repeatStr(6, "I") // "IIIIII"
repeatStr(5, "Hello") // "HelloHelloHelloHelloHello"
'매일매일개발 > Codewars' 카테고리의 다른 글
codewars #49 Playing with digits (6kyu) (0) | 2018.05.25 |
---|---|
codewars #48 A Rule of Divisibility by 13 (6kyu) (0) | 2018.05.24 |
codewars #46 Your order, please (6kyu) (1) | 2018.05.22 |
codewars #45 Sort - one, three, two (5kyu) (0) | 2018.05.21 |
codewars #44 Bouncing Balls (6kyu) (0) | 2018.05.18 |