Skip to content

Commit ffb67e9

Browse files
Fix formatting of count increment in countChar function
1 parent 445c399 commit ffb67e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function countChar(stringOfCharacters, findCharacter) {
33
let count = 0;
44
for (const char of stringOfCharacters) {
55
if (char === findCharacter) {
6-
count+=1;
6+
count += 1;
77
}
88
}
99

0 commit comments

Comments
 (0)