Contact: aviboots(AT)netvision.net.il
41,656 questions
54,319 answers
573 users
function vowel_count(str : string) : number { const vowels = /[aeiou]/gi; const result = str.match(vowels); const count = result.length; return count; } console.log(vowel_count("typescript programming")); /* run: 5 */