Basic JavaScript - Escaping Literal Quotes in Strings

what do i do lol i am confused i did look at the hint and it said " Variable myStr should contain the string: I am a "double quoted" string inside "double quotes". which it already does, right?

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

Your browser information:

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

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

does your console.log print out anything?
please share the output here also along with any errors you are getting

i am a, “double quoted” string inside “double quotes”.
myStr = “i am a, “double quoted” string inside “double quotes”.” thats what it shows me

do I see an extra comma in your output?

so it shouldnt be "i am a, ? well even if i delete it, it still wont work. it keeps showing me that myStr should contain I am a “double quoted” string inside “double quotes”.

you gotta match the output exactly to the test’s expectations.
Try putting the 2 strings on 2 lines, one under the other to see if there is any spaces or other differences.

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