find the vowel js
function vowel_count(str1)
{
var vowel_list = 'aeiouAEIOU';
var vcount = 0;
for(var x = 0; x < str1.length ; x++)
{
if (vowel_list.indexOf(str1[x]) !== -1)
{
vcount += 1;
}
}
return vcount;
}
console.log(vowel_count("The quick brown fox"));
Also in JavaScript:
- react search when stop typing
- rounding off numbers javascript
- jquery get value by name
- urlencoded json express
- difference between == and === in javascript
- Material-ui wallet icon
- javascript send post data with ajax
- react lifecycle hooks
- python dictionary to json
- open json file r
- javascript get index of object in array
- angular pipe to capitalize first letter
- global site tag (gtag.js) - google analytics gatsby
- javascript remove event listener
- disable text selection in js
- decode json file in java tutorial
- loop javascript
- check if palindrome
- javascript glow
- check cookies client side
- bootstrap javascript cdn
- draw line between two div css
- create server and connect to db and frontend
- what does conservatism really mean