Escaping Literal Quotes in Strings , HELP!

Tell us what’s happening:
It does not go through, what could be the issue?

Your code so far


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

console.log(myStr);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

there is a mistake u have two double quote at the end of ur string ,coment out 1 and leave the other after the full stop

The two double quotes at the end is fine - the second one terminates the JS string. The issue is the other one.

This is what is being outputted:

I am a "double quoted" string inside "double quotes"

This is what is expected:

I am a "double quoted" string inside "double quotes".

It’s just that a character is missing at the end.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.