Word Count

Strings ยท medium

Implement `wordCount(s)` returning the number of words in `s`, where words are separated by any whitespace and surrounding whitespace is ignored.

Learning resources

Loading...

Run your code to see results.