HELP with Escaping Literal Quotes in Strings

HELP with Escaping Literal Quotes in Strings
0

#1

Tell us what’s happening:

can you please explain what I am doing wrong. I have no idea so I cannot help myself.

Your code so far


var myStr = "i am a "double quoted" sting inside "double quotes"\" ; // Change this line


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15.

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


#2

First of all, JavaScript is case-sensitive, so if the instructions tell you to write I am a, then writing i am a is not the same.

Second, the instructions tell you that if you start and end a string with a double quote , then in order to actually have a double quote appear in the string, you must escape it by putting a backslash character ( \ ) right before it. The only backslash you are using in your string is after the word quotes", but you can not have the " before the \", because that signifies the end of the string.


#3

thanks for your help