I have tried passing strings to the getCount
function that contain ‘aeiou’ and not but the value vowelsCount
is always 0.
I tried using string includes()
function using the documentation provided by the very kind and helpful mdnwebdocs, but it always returns count as 0, I have the code with which we can get the exact number of vowels in a string, but I prefer to use the approach taught by mdnwebdocs.