diff --git a/helloWorld/helloWorld.js b/helloWorld/helloWorld.js index a41264d..7d01115 100644 --- a/helloWorld/helloWorld.js +++ b/helloWorld/helloWorld.js @@ -1,5 +1,5 @@ const helloWorld = function() { - return '' + return 'Hello, World!' } module.exports = helloWorld diff --git a/repeatString/repeatString.js b/repeatString/repeatString.js index 770119a..58a1295 100644 --- a/repeatString/repeatString.js +++ b/repeatString/repeatString.js @@ -1,5 +1,13 @@ -const repeatString = function() { - -} +const repeatString = function(repeat,j) { + if (j<0){ + return 'ERROR'; + }else{ + var str = ''; + for (var i=0; i