Method calculate vowels in word, phrase. Vowels are the characters ‘a’, ‘e’, ‘i’, ‘o’, and ‘u’
npm install allalgorithms
const allalgorithms = require('allalgorithms');
const str = 'How do you do?';
console.log(allalgorithms.strings.vowels(str));
// -> 5
Returns count of vowels inside string
str
: String