Exercise Escaping Literal Quotes in Strings

Exercise Escaping Literal Quotes in Strings
0

#1

Tell us what’s happening:

hi!
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”.

thanks


**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:**
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings/

#2

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
```


#3

hi!

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


#4

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


#5

thanks! you’re right!