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
Any chance you can show me what that looks like?? bit confussed
have looked at the example but i cant seems to find where im going wrong??
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
system
Closed
January 12, 2023, 2:10pm
12
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.