Basic JavaScript - Quoting Strings with Single Quotes

Tell us what’s happening:

It says that I need to remove all backslashes but I dont understand because i already removed them

Your code so far

const myStr = '<a href="http://www.example.com" target="_blank">Link<a>';

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 OPR/102.0.0.0

Challenge Information:

Basic JavaScript - Quoting Strings with Single Quotes

It looks like you accidentally removed a forward slash inside the closing a tag.

2 Likes