Tell us what’s happening:
First Test says this should have 25 vowels. However, this line has 26 vowels.
Your code so far
let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[a,e,i,o,u]/ig; // Change this line
let result = quoteSample.match(vowelRegex); // Change this line
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.
Link to the challenge:
i counted 25…
ps. this was one of the most boring responses I ever wrote. sigh. counting vowels…
But isn’t “y” a vowel as well?
Y is sometimes a vowel. Vowels are a, e ,I ,o ,u , and sometimes y.
Whether y is a vowel depends on the word in which it is used . But the tests (correctly for the word) don’t consider y a vowel.