Count a Character

Strings ยท medium

Implement `countChar(s, ch)` returning how many times the single character `ch` appears in `s`.

Learning resources

Loading...

Run your code to see results.