Easy10 min
Count the Vowels
Return the number of vowels (a, e, i, o, u) in the input text. Count uppercase and lowercase vowels.
Your function
Implement solve(value, extra) in JavaScript. Return the answer; printing alone does not count as a result.
Examples
Input:
["CuroCube"]Output:
4Input:
["sky"]Output:
0Constraints
Input contains at most 1,000 values or characters. Numbers are finite integers. Inputs follow the structure shown in the examples.