7. Count Vowels
Lesson 8 of 31 in Coddy's 30 Days of Logic Building in Javascript course.
Challenge
EasyWrite a function to count the number of vowels in a given string.
- Input:
<strong>"Hello"</strong> - Output:
<strong>2</strong>
Try it yourself
function countVowels(str) {
// write your code below
}All lessons in 30 Days of Logic Building in Javascript
1Introduction
What is here for you?