Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 367 Bytes

File metadata and controls

15 lines (10 loc) · 367 Bytes

Thinkful - String Drills. Repeater (7 kyu)

https://www.codewars.com/kata/thinkful-string-drills-repeater/

Write a class function named repeat() that takes two arguments (a string and a long integer), and returns a new string where the input string is repeated that many times. For example:

Repeater.repeat('a', 5);

should return

'aaaaa';