dhtml Return the number (count) of vowels in the given string. We will consider a, e, i, o, u as vowels for this Kata (but not y). The input string will only consist of lower case letters and/or spaces.
blessedtechie The chatbot had already solved the challenge, so I decided to test-run the code it suggested as the solution, and it worked. For the input string “blessedtechie”: The vowels are ‘e’, ‘e’,‘e’,‘i’ and ‘e’. The function correctly counts these vowels and returns 5. This function will work correctly for any input consisting of lowercase letters and/or spaces.