There is no backslash in the code yet it is showing the error to remove all the backslashes

Tell us what’s happening:

Your code so far

var myStr = '<a href = "" 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/89.0.4389.90 Safari/537.36.

Challenge: Quoting Strings with Single Quotes

Link to the challenge:

Your “a” tag on the end still requires a forward slash “</a>”.
The test is giving a misleading error for some reason.

It does require a forward slash and yet it is only showing the same error

If I copy and paste your code you posted and add only the forward slash on the closing “a” tag, it passes the test. You must have changed something else accidentally.

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