Files
thatblindgeye 4a112362c8 Update files
2023-01-21 12:53:41 -05:00

11 lines
210 B
JavaScript

const repeatString = function (word, times) {
if (times < 0) return "ERROR";
let string = "";
for (let i = 0; i < times; i++) {
string += word;
}
return string;
};
module.exports = repeatString;