I'm stuck at Escaping Literal Quotes in Strings lesson

Why is my code not working???
I can’t move on :frowning:
Please help


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

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

You didn’t follow the instructions:

Use backslashes to assign a string to the myStr variable so that if you were to print it to the console…

There are still double quotes in the string that are not using escapes. And you changed the string containing quotes (the ones on the outside) to single quotes - you weren’t told to do that and it defeats the purpose of the exercise. There is also a mistake in one of your escapes.

1 Like

I got it! Thank you…
:grin:

1 Like