Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vowel #counter #javascript
ADD COMMENT
Topic
Name
4+2 =