From e27bc41edac53b39a85355be0886fd7261dd2bbf Mon Sep 17 00:00:00 2001
From: Karem Quiroz <58605593+codekacode@users.noreply.github.com>
Date: Wed, 1 Jul 2020 18:04:47 -0500
Subject: [PATCH] Repeat String Solution

---
 repeatString/repeatString.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/repeatString/repeatString.js b/repeatString/repeatString.js
index 770119a..422d8a9 100644
--- a/repeatString/repeatString.js
+++ b/repeatString/repeatString.js
@@ -1,5 +1,10 @@
-const repeatString = function() {
-
+const repeatString = function(term , repeat) {
+  if( term < 0) return 'ERROR';
+  let str = 0
+  for( let i = 0 ; i < repeat ; i++){
+    str += term
+  }
+  return str
 }
 
 module.exports = repeatString