Answers for "find the vovels & others into the string and display in javascript"

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
0

count vowels in a string javascript

// BEST and FASTER implementation using regex
const countVowels = (str) => (str.match(/[aeiou]/gi) || []).length
Posted by: Guest on August-17-2020

Code answers related to "find the vovels & others into the string and display in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language