diff --git a/02_repeatString/repeatString.js b/02_repeatString/repeatString.js index 4359bbe..3f46f91 100644 --- a/02_repeatString/repeatString.js +++ b/02_repeatString/repeatString.js @@ -1,5 +1,9 @@ -const repeatString = function() { - +const repeatString = function(string, repeats) { + output_str = ''; + for (i = 0; i < repeats; i++) { + output_str = output_str + string; + } + return output_str; }; // Do not edit below this line