functioncountVowels(string){if(typeof(string)!=='string')thrownewError('input must be a string');constvowels='aeiouAEIOU';letvowelCount=0;for(indexinstring){if(vowels.includes(string.charAt(index)))vowelCount++;}returnvowelCount;}
ledgible I hope
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ledgible I hope