Deviopath › JavaScript

Count Vowels

Easy · Strings

Write a function countVowels that returns how many vowels (a, e, i, o, u) are in the string.

Uppercase and lowercase vowels both count.

Next: Starts With a Capital