Tell us what’s happening:
I edited the code and it seems to be correct. I even compared with solved helps but it keeps saying SyntaxError: invalid regular expression flag s.
Your code so far
var myStr = '<a href="http://www.example.com" target="_blank">Link</a>';
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0.
mine is identical to yours var myStr = '<a href="http://www.example.com" target="_blank">Link</a>';
perhaps the issue is an extension on your browsers.
FCC is not compatible with some of chrome extensions.