Skip to content

Commit d36bd0a

Browse files
committed
C to c redux
1 parent df08be5 commit d36bd0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function countChar(stringOfCharacters, findCharacter) {
22
const totalCount=stringOfCharacters.split("");
3-
Count=0
4-
for(i=0; i<totalCount.length; i++){
3+
let count=0
4+
for(let i=0; i<totalCount.length; i++){
55
if(totalCount[i]===findCharacter){
66
count++
77
}

0 commit comments

Comments
 (0)