Skip to content

Commit eb7c0eb

Browse files
committed
Indentation improved.
1 parent 452b1a6 commit eb7c0eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ function countChar(stringOfCharacters, findCharacter) {
77
}
88

99
let count = 0;
10+
1011
for(let char of stringOfCharacters) {
1112
if (char === findCharacter) {
1213
count++;
1314
}
1415
}
1516
return count;
16-
1717
}
1818

1919
module.exports = countChar;
2020

2121
console.log(countChar("amazon", "a"));
2222

2323
// Added lines to check cases and return count of characters.
24+
// Indentation improved.

0 commit comments

Comments
 (0)