Skip to content

Commit 1cb231d

Browse files
committed
changes made
1 parent 7ae80a5 commit 1cb231d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function countChar(stringOfCharacters, findCharacter) {
2-
totalCount=stringOfCharacters.split("");
2+
const totalCount=stringOfCharacters.split("");
33
Count=0
44
for(i=0; i<totalCount.length; i++){
55
if(totalCount[i]===findCharacter){
@@ -8,7 +8,7 @@ for(i=0; i<totalCount.length; i++){
88
}
99
return Count
1010
}
11-
console.log(countChar("AAA","A"))
11+
console.log(countChar("aaaa","a"))
1212
module.exports = countChar;
1313

1414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function repeatStr(times, str) {
2-
if (times < 0){ throw ("error")}
2+
if (times < 0){ throw ("error input required to repeat")}
33
return str.repeat(times);
44

55
}

0 commit comments

Comments
 (0)