Answers for "how do i function that named vowelcounter which takes a single word and returns the number of vowels in the word in javascript"

3

how to make a vowel counter in javascript

const vowelCount = str => {
  let vowels = /[aeiou]/gi;
  let result = str.match(vowels);
  let count = result.length;

  console.log(count);
};
Posted by: Guest on April-08-2020

Code answers related to "how do i function that named vowelcounter which takes a single word and returns the number of vowels in the word in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language