Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vowels Count js

function getCount(str) {
  return (str.match(/[aeiou]/ig)||[]).length;
}
Source by www.codewars.com #
 
PREVIOUS NEXT
Tagged: #vowels #Count #js
ADD COMMENT
Topic
Name
1+6 =