Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 128: Working With Strings - Part 1
Implement `countVowels(s)` returning how many vowels (a, e, i, o, u, any case) appear in `s`.
+ 1 hidden test run on Submit.
Matching /[aeiou]/gi finds every vowel; guarding the null result with || [] keeps .length safe.
Run your code to see results.