From f41af975a682965fd24a37a7f60859e21310c350 Mon Sep 17 00:00:00 2001 From: octopusGarden Date: Mon, 24 Oct 2022 15:36:18 -0400 Subject: [PATCH] Completed second exercise --- 02_repeatString/repeatString.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_repeatString/repeatString.js b/02_repeatString/repeatString.js index 4359bbe..ea61aa0 100644 --- a/02_repeatString/repeatString.js +++ b/02_repeatString/repeatString.js @@ -1,5 +1,5 @@ -const repeatString = function() { - +const repeatString = function(string, num) { + return string.repeat(num); }; // Do not edit below this line