Skip to content

Commit ba5f17d

Browse files
authored
Remove debug log from count function
Removed console.log statement from character counting loop.
1 parent efa8b75 commit ba5f17d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ function countChar(stringOfCharacters, findCharacter) {
55
for (let i = 0; i < str; i++) {
66
if (stringOfCharacters[i] === findCharacter) {
77
count += 1;
8-
console.log(stringOfCharacters[i]);
98
}
109
}
1110
return count;

0 commit comments

Comments
 (0)