Tell us what’s happening:
My result is true but it doesnt accept it when i submit it.
Your code so far
let myString = "Hello, World!";
let myRegex = /Hello/;
myRegex.test(myString);
console.log(myRegex.test(myString));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36
Challenge: Using the Test Method
Link to the challenge: