Difficulty: Intermediate
Category: Strings
Title: Count Vowels
Given a variable string named word, e.g. 'Elephant', return the number of vowel letters (consider both uppercase and lowercase vowels). For this exercise we will consider the vowel letters to be A, E, I, O, and U.
Examples
- countVowels('base') → 2
- countVowels('code') → 2
- countVowels('Elephant') → 3
Hints
Hide Hint
JavaJavaScriptPython
Test Results
Hide Results
v0.9.9.033