Ad
Code
Diff
  • //countVowelAtWord=s=>s.replace(!/[aeiou]/ig,``).length
    
    const countVowel=s=>s.replace(/[^aeiou]/ig,'').length
      
    • //countVowelAtWord=s=>s.replace(!/[aeiou]/ig,``).length
    • const countVowel=s=>s.replace(/[aeiou ]/ig,'').length
    • const countVowel=s=>s.replace(/[^aeiou]/ig,'').length