Update files

This commit is contained in:
thatblindgeye
2023-01-21 12:53:41 -05:00
parent fb1a2db8d7
commit 4a112362c8
31 changed files with 571 additions and 449 deletions
@@ -1,10 +1,10 @@
const repeatString = function (word, times) {
if (times < 0) return 'ERROR';
let string = '';
for (let i = 0; i < times; i++) {
string += word;
}
return string;
if (times < 0) return "ERROR";
let string = "";
for (let i = 0; i < times; i++) {
string += word;
}
return string;
};
module.exports = repeatString;