Create a function that takes a string and returns the number (count) of vowels contained within it. javascript code example
Example: count vowels in a string javascript
// BEST and FASTER implementation using regex
const countVowels = (str) => (str.match(/[aeiou]/gi) || []).length