Generation

generate functionTue, 21 Mar 2023

count vovels from input string

Script function countVowels(string) { var m = string.match(/[aeiou]/gi); return m === null ? 0 : m.length; } countVowels('I love you')

Questions about programming?Chat with your personal AI assistant