Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.
and why do the " showing up in my out put before the i am a, it dosnt work without it i used \ to cancle. ive tried lit everything.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Hey!

it looks like the string that is rendered when you run your code has extra spaces in it. the string has to be exactly the same as this. You’re also missing a “.” (dot ) at the end of the string.

image

Hope this helps! :smile:

so i fixed the spaces and end but my output keeps printing out the whole thing " I am a , no matter what i do i cant get it to print without the " quote in front of
I am a

please just stick to replying in a single post rather than making 2 posts about the same topic.

I suggest you post your latest code for further help.

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