Answers for "how to return the vowel and count in a string js"

1

how to make a vowel counter in javascript

function countVowels(str) {
  return str.match(/[aeiou]/g).length;
}
Posted by: Guest on April-09-2020

Code answers related to "how to return the vowel and count in a string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language