Quoting Strings with Single

Tell us what’s happening:
please help i have been trying to solve this in curriculum section but i keeping on getting remove backslashe message

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 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes/

That message is inaccurate, but look at the example URL. You have a slight typo.

1 Like

You have a typo. Take a look at the url of your browser of this very site. What’s after http?

However, I think it should still pass the test even if the message is incorrect.

1 Like

Here is the link to the challenge https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes/

Thanks will check it out

Tried it now but didn’t work added s in front of htttp

There’s no need to add s after http. What I meant by slight typo was that the : in your code should be after http, not before www.

1 Like