Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 128: Working With Strings - Part 1
Implement `countChar(s, ch)` returning how many times the single character `ch` appears in `s`.
+ 1 hidden test run on Submit.
Iterating once and incrementing on each match counts occurrences of the character.
Run your code to see results.