Examples:
vowels('Hi There!') --> 3
vowels('Why do you ask?') --> 4
vowels('Why?') --> 0
function vowels(str) { const matches = str.match(/[aeiou]/gi); // returns an array of matches or null return matches ? matches.length : 0; }