Getting going, Strings
Count the vowels
The task
Count the vowels (a, e, i, o, u) in a piece of text. Capital letters count too.
Write a function called countVowels.
Tests
| Call | Expected | Yours |
|---|---|---|
countVowels("education") |
5 |
not run |
countVowels("Rhythm") |
0 |
not run |
countVowels("AEIOU aeiou") |
10 |
not run |
countVowels("") |
0 |
not run |
solution.js
Tab indents. To leave the editor, press Escape, then Tab.
Output
Run prints what your code prints. Run the tests to check your function.