Match Single Character with Multiple Possibilities helpp

cant understand what am i doing wrong here

Your code so far


let quoteSample = "Beware of bugs in the above code; I have only proved it correct, not tried it.";
let vowelRegex = /[aeiou]/gi; // Change this line
let result = vowelRegex.test(quoteSample); // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-single-character-with-multiple-possibilities

your regex is fine, but you need to use match function instead of test to return the resulting match

1 Like

well that was correct but they said to find not extract

In theory, match is the only one that fits the description because it returns what is found but test returns only whether it found something or not (true or false).