Files

14 lines
284 B
JavaScript
Raw Permalink Normal View History

2025-02-22 10:23:40 +09:00
const repeatString = function(string,number) {
let fullString = "";
if (number < 0) {
return "ERROR";
}
for (i = 0; i < number; i++) {
fullString += string;
}
return fullString;
2021-03-03 15:13:24 +13:00
};
2017-08-21 10:28:29 -05:00
// Do not edit below this line
2021-03-03 15:13:24 +13:00
module.exports = repeatString;