Skip to content

Commit dbf4e92

Browse files
committed
Implemented the function and the test was passed
1 parent edea881 commit dbf4e92

File tree

1 file changed

+4
-3
lines changed
  • Sprint-3/3-mandatory-practice/implement

1 file changed

+4
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
function repeat() {
2-
return "hellohellohello";
1+
function repeat(word, times) {
2+
return word.repeat(times);
33
}
4+
console.log(repeat("hello", 3)); // The output should be "hellohellohello"
45

5-
module.exports = repeat;
6+
module.exports = repeat;

0 commit comments

Comments
 (0)