Skip to content

Commit ade9346

Browse files
refactor repeat function for improved formatting and readability
1 parent 0f7f656 commit ade9346

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function repeat(str,count) {
2+
23
if(count<0){
34
return "Error: negative numbers are not valid";
45
}
@@ -7,5 +8,3 @@ function repeat(str,count) {
78

89
module.exports = repeat;
910

10-
11-

0 commit comments

Comments
 (0)