← Challenges

Count Vowels

Write solve(s) that returns the number of vowels (a, e, i, o, u, case-insensitive) in s.

Examples

  • solve("hello")2
  • solve("sky")0