I don’t what with 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; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes
were you asking “I don’t know what is backslashes”?
this is a backslash \
Or were you saying, you don’t know where to put the backslash?
I don’t where to put the backslashes
the original string you are given is:
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";
and you are asked to change the double quotes (") to single quotes (’)
and then to remove the escaped double quotes (which means remove the backslashes that come immediately before a double quote in the string).
In your code you somehow removed the first and last angled bracket, so that is the problem i see.
1 Like