Tell us what’s happening:
I am getting the following result when I try to pass the tests:
// running test
result is not defined
// tests completed
I have tried it in repl.it and it works as expected and returns true
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 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/using-the-test-method