Answers for ". write a function that named vowelcounter which takes a single word and returns the number of vowels in the word javascrept"

2

find vowel & consonants in a string java script

const str = "The quick brown fox jumps over a lazy dog"; 
const vowels = str.match(/[aeiou]/gi); 
const consonants = str.match(/[^aeiou]/gi);   
vowels.concat([''],consonants).forEach(k => { console.log(k); } );
Posted by: Guest on October-09-2020
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 ". write a function that named vowelcounter which takes a single word and returns the number of vowels in the word javascrept"

Code answers related to "Javascript"

Browse Popular Code Answers by Language