Need help with javascript escape sequence

I’m getting an error saying I should have double " and four escape characters.

Your code so far

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


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36.

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

I think you may have an extra space at the end of your first string.

Took it out but still same error.

Are you using the first or second string in your code?

I’m getting an error saying I should have double " and four escape characters.

Your code so far

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


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36.

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Why do you have two different lines declaring myVar?

Also, why did you copy and paste your first post without fixed code? I’m confused.

I’m using the first string. Figured it out - somehow there are different double quotes between my laptop and copying someone else’s code. Thanks for the help!

Ah, yeah. Sometimes Apple devices will ‘fix’ your characters for you because big Apple knows better.