Basic JavaScript - Quoting Strings with Single Quotes

Tell us what’s happening:
Describe your issue in detail here.
It is telling me to remove all backslashes, but I don’t have any.
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Quoting Strings with Single Quotes

Link to the challenge:

It is the comma you have inside the link text.


BTW, it didn’t ask you to change const to var

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