remove class based exercises

This commit is contained in:
Cody Loyd
2017-11-20 13:51:01 -06:00
parent f0bf584e59
commit 290e7f1da4
18 changed files with 67 additions and 164 deletions
+7 -2
View File
@@ -1,5 +1,10 @@
var repeatString = function() {
var repeatString = function(string, num) {
if (num < 0) return 'ERROR'
let returnValue = ''
for(let i = 0; i < num; i++) {
returnValue = returnValue + string
}
return returnValue
}
module.exports = repeatString