Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (12 sloc) 336 Bytes

Find the vowels


Given string implement a function, which returns the number of vowels used in a string. Vowels are the characters a, e i, o, u and y.

Puzzle | Solution


vowels('Hi There!') // 3

vowels('Why do you ask?') // 4

vowels('Why?') // 0
You can’t perform that action at this time.