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.
Ask questions, share knowledge, and discuss tech topics with peers.
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.
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
The vowels are
The function correctly counts these vowels and returns 5.
This function will work correctly for any input consisting of lowercase letters and/or spaces.