Count Vowels

Easy · javascript · javascript · strings

Write solution(str) that returns the count of vowels (a, e, i, o, u — case-insensitive) in a string.

Sample tests

solution("hello world") // => 3

Submit

Leaderboard