Ive removed all the backslashes yet i have an error, where could i have gone wrong?

Tell us what’s happening:

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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36.

Challenge: Quoting Strings with Single Quotes

Link to the challenge:

One of the criteria below states :

You should have two single quotes ' and four double quotes " .
So count your double and your single quotes.
Your code works in a browser but does not meet the criterion above.

Greets,
Karin

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