Backslash issue: Quoting Strings with Single Quotes

Tell us what’s happening:
It keeps telling me to remove the backslashes. I’ve removed them all, but it’s still saying that. I even tried a version without any forwardslashes or backslashes. It still says I need to remove all backslashes.

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 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36.

The test message is a little misleading. It is failing because it is not just expecting no backslashes, but you should not be adding extra characters which were not apart of the original string. You have added two forward slashes which were not apart of the original string.