Where did i commit mistake?

I removed backslashes and changed double quotes as well as single quotes as mentioned in the instructions.
But still, it is showing like this "You should remove all the 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.64

Challenge: Quoting Strings with Single Quotes

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

You were tasked with only changing the outer quotes and removing the escape characters.
You removed something else which is why the test fails.

This is the code you started with
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";

This is what you submitted
var myStr = '<a href="http://www.example.com" target="blank">Link</a>';

1 Like

you removed the underscore before blank in target="_blank", and that’s why it failed.

1 Like

Thank you soo much sir.
Now onwards I will post clearly .

Thank you sir,
Earlier, I tried with blank but, I didn’t get .
Now I got it.

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