Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 343 Bytes

File metadata and controls

20 lines (12 loc) · 343 Bytes

Find the vowels

Instructions

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.

challenge | solution

Examples

vowels('Hi There!') // 3

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

vowels('Why?') // 0