Contact: aviboots(AT)netvision.net.il
39,939 questions
51,876 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 */