Ad
Code
Diff
  • const countVowel = str => --str.split(/[aeiou]/i).length
      
    • const countVowel = str => str.split(/[aeiou]/i).length - 1
    • const countVowel = str => --str.split(/[aeiou]/i).length