Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 128: Working With Strings - Part 1
Implement `countVowels(str)` that returns the number of vowels (`a e i o u`, case-insensitive) in `str`.
+ 2 hidden tests run on Submit.
A global case-insensitive vowel match, guarded against null, gives the vowel count.
Run your code to see results.