Using the Test Method why not working?

This is the solution to the challenge.

let myString = “Hello, World!”;
let myRegex = /Hello/;
myRegex.test(myString); // Change this line

Why isn’t it passing? Thnk you very much guys!

Tha challenge is here:

Dear @alexandriaroberts,

it would be great if you could move your question to the “Javascript” category, because there all the Javascript-focussed campers can help you :slight_smile:

Concerning your question: you lack the original result variable:

let result = myRegex.test(myString);
1 Like

Thank you very much @5k9m !! How silly is that! :slight_smile: I will move it to JavaScript category!