7 lines
193 B
JavaScript
7 lines
193 B
JavaScript
|
function vowel_count(str) {
|
||
|
|
||
|
return str.match(/[aeiou]/gi).length;
|
||
|
|
||
|
}
|
||
|
|
||
|
console.log(vowel_count('The quick brown fox jumps over the lazy dog'));
|