Count Vowels

STRING

Problem

Given a string s, return the count of vowels (a, e, i, o, u) in it.

Examples

countVowels("abc"); // returns 1 countVowels("test"); // returns 1 countVowels("hello"); // returns 2 countVowels("syllable"); // returns 2
Loading...