Unable to proceed in Javascript course due to error

Tell us what’s happening:
I have completed the exercise from the section of : Check For Mixed Grouping of Characters in Regular Expressions:
However, I cant proceed.I get the message but cant submit answer and move forward to new exercises. Thanks for your help!

Your code so far

let myString = "Eleanor Roosevelt";
let myRegex = /(Franklin|Eleanor).*Roosevelt/; // Change this line
myRegex.test(myString); // Change this line
// After passing the challenge experiment with myString and see how the grouping works

Your browser information:

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

Challenge: Check For Mixed Grouping of Characters

Link to the challenge:

Ya, the instructions for this one aren’t quite as clear as they should be. They want you to save the results of the test in a variable named result. I had to look at the solution to see this.


HI @SarahVici !

As mentioned, you deleted the result variable and that is why it is not passing.
But I am not sure why we need a result variable in the first place here :woman_shrugging:

1 Like

Wow, thanks…it worked!

Much thanks, it worked!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.