passed first test
This commit is contained in:
parent
e91e42b5ba
commit
42824f0cfe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue