JS regular expressions, step 1

Tell us what’s happening:
I’m not sure why my solution isn’t passing the tests. I checked it with one of online-compilers and it returns true.
Also, my solution is identical to solution provided in Get Hint topic related to this step.

Your code so far

let myString = "Hello, World!";
let myRegex = /Hello/;
myRegex.test(myString); // 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/ Safari/537.36

Challenge: Using the Test Method

Link to the challenge:

The challenge is expecting result to be assigned a value (the result of testing mystring using myRegex.

Oh, I see. That was some carelessness from me. Thanks for your help!

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