Count Vowels

Strings ยท easy

Implement `countVowels(str)` that returns the number of vowels (`a e i o u`, case-insensitive) in `str`.

Hints
  • A regex with the `g` flag matches all occurrences.

Learning resources

Loading...

Run your code to see results.