Skip to content

Commit 8767246

Browse files
printed the output of empty string when count is zero
1 parent fd06505 commit 8767246

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sprint-3/2-practice-tdd/repeat-str.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ function repeatStr(str,count) {
1010
}
1111
console.log(repeatStr("hello", 3)); // Output: "hellohellohello"
1212
console.log(repeatStr("hello", 1)); // Output: "hello"
13+
console.log(repeatStr("hello", 0)); // Output: ""
1314
module.exports = repeatStr;

0 commit comments

Comments
 (0)