vowels Count js
function getCount(str) {
return (str.match(/[aeiou]/ig)||[]).length;
}
vowels Count js
function getCount(str) {
return (str.match(/[aeiou]/ig)||[]).length;
}
find vowels in string javascript
var name = userInput[0];
var count =0;
function findvowel(name)
{
var vowel = ['a','e','i','o','u','A','E','I','O','U'];
for(i=0;i<name.length;i++)
{
if(vowel.includes(name[i]))
{
count++;
}
}
return count;
}
console.log(findvowel(name));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us