Basic JavaScript - Escaping Literal Quotes in Strings

it is saying that im missing a semicolon but im not sure where im missing it from? can anyone help me out plz?

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) 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:

It looks like you didn’t change string which was given in the task…
Little confused about this

The entire string that you need to assign to myStr should be surrounded double quotes. In order to do that, you must escape the double quotes that are in the sentence, so they are captured as double quotes in myStr. See the example for how to escape the double quotes.

Any chance you can show me what that looks like?? bit confussed

The examples in the challenge do show you how that is done. Look at:

const sampleStr = "Alan said, \"Peter is learning JavaScript\".";

The original sentence was

Alan said, "Peter is learning JavaScript".

The backslash (\) escapes the double quotes in the original sentence.

have looked at the example but i cant seems to find where im going wrong??

Post your latest code attempt.

const sampleStr = "Alan said, \"Peter is learning JavaScript\".";
                  ↑                                            ↑
const myStr = I am a \"double quoted" string inside "double quotes\"."; // Change this line

Please read my first reply to you where I mention something needs to surround the entire string being assigned to myStr. Also, you need to escape all double quotes of the sentence and not just the first and last.

thank you should have looked first lol