DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+3 =
Submit