diff --git a/02_repeatString/repeatString.js b/02_repeatString/repeatString.js index 4359bbe..eef887d 100644 --- a/02_repeatString/repeatString.js +++ b/02_repeatString/repeatString.js @@ -1,6 +1,12 @@ -const repeatString = function() { -}; +const repeatString = function repeatString (string, num) { + let repeatedString = '' + for (let num = 0; num <=2; num ++) { + repeatedString += string; + } + return repeatedString; + } + // Do not edit below this line module.exports = repeatString;