passed first test

This commit is contained in:
Fredrik Uddenfeldt 2023-05-16 22:00:44 +02:00
parent e91e42b5ba
commit 42824f0cfe
1 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,12 @@
const repeatString = function() {
};
const repeatString = function repeatString (string, num) {
let repeatedString = ''
for (let num = 0; num <=2; num ++) {
repeatedString += string;
}
return repeatedString;
}
// Do not edit below this line
module.exports = repeatString;