Find Vowels count in String | #javascript | #coding #tutorial #viral #shorts



Find Vowels count in String | #javascript | #coding #tutorial #viral #shorts

Find Vowels count in String | #javascript | #coding #tutorial #viral #shorts

How to get the count of vowels present in a String using Javascript.

Here is the code below:

function vowels(params) {
var vowels = [“a”, “e”, “i”, “o”, “u”];
let str = params.split(“”);
let count = 0;

for(let x of str){
if(vowels.includes(x)){
count++;
}
}

return count;
};

For more coding knowledge, please stay tuned to our channel @CraptTechnologies .

Please Like, Share, Subscribe and hit the Bell icon to receive notifications.

#java #javascript #html #css #html5 #css3 #react #reactjs #code #coding #challenge #challenges #shorts #youtube #nextjstutorial #tutorial #development #developer #software #funny #entertainment #comedy #viral #challenge #dance #fun #trending #music #shortvideo
#Shorts
#YouTubeShorts
#ShortsVideo
#ShortsContent
#ShortsCreators
#ShortsTrending
#ShortsChallenge
#ShortsCommunity
#ShortsViral
#ShortsVideoClips
#howto
#how
#diy
#hacker
#hacks