Quoting Strings with Single Quotes;

Quoting Strings with Single Quotes;
0.0 0

#1

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

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


#2

You misunderstood. You needed to do two things:

  1. Replace the double quotes at the end with single quotes
  2. Remove the unneeded escape character (\) inside the quote because it is no longer needed

You did the second, but as to the first, simply surrounded the double quotes with two single quotes. You need to replace the double quotes at the beginning and the end with a single single quote.


#3

thanks for you help but i solved it