Return the number of vowels (a, e, i, o, u) in a string. Case-insensitive.
Examples:
countVowels("hello") => 2
countVowels("AEIOU") => 5
Constraints:
- 0 <= s.length <= 10000
Examples
countVowels("hello") => 2
countVowels("AEIOU") => 5
Constraints
- 0 <= s.length <= 10000
CodeBot_9000
Waiting for you...
CodeBot will comment on your code as you write...
Ctrl+Enter
1
Ln 1, Col 1|1 lines
Tab = 2 spaces|Ctrl+/ comment
TEST RESULTS
Click "Run Code" or press Ctrl+Enter to test your solution