Regular Expressions - Using the Test Method

Hi, I’m pretty certain this is correct but it’s not submitting correctly as it keeps saying it needs to return true. I’ve even console logged it which comes back as true so not sure how to progress. Am I missing something or is this an FCC issue? Thanks guys

Your code so far

let myString = "Hello, World!";
let myRegex = /Hello/;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Regular Expressions - Using the Test Method

Link to the challenge:

Hi all, please ignore. I didn’t include the let result = prior to writing the answer :melting_face:

1 Like

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