Exercise Escaping Literal Quotes in Strings

Tell us what’s happening:

why my answer is wrong?

my answer is = var myStr = " I am a “double quoted” string inside “double quotes”.";

but the console says = Variable myStr should contain the string: I am a “double quoted” string inside “double quotes”.


**Your browser information:**

User Agent is: <code>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36</code>.

**Link to the challenge:**

i can’t tell if you escaped any of the double quotes. Can you post your code in between two lines with 3 backticks like this :slight_smile:
put code here


 var  myStr = " I am a \"double quoted\" string inside \"double quotes\".";

I think you have an extra space at the start of the string? Make sure you copy the string exactly.

thanks! you’re right!

1 Like