Escaping Literal Quotes in Strings 13/08/2018

Escaping Literal Quotes in Strings 13/08/2018
0

#1

Tell us what’s happening:

Dear All
Would you please let me know what is my error in my following code?
Regards,

Your code so far


var myStr = "I am a\"double quoted\"string inside \"double quotes\"."; // Change this line



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings


#2

There are no spaces around the first quoted texts.


#3

Thanks a lot but unfortunately does not work with your comment also!


#4

Add space before this as well i.e second quotes.


#5

var myStr = “I am a” double quoted"string inside " double quotes"."; // Change this line

Thank you .I added spaces before first and second quoted texts but does not work again.


#6

Whenever you want to enter your code use three backticks(```) to do so, or use the code tag of html.


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

This doesn’t work??


#8

Thank you. I checked all spaces again and finally worked.