Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.

HI, I feel like I am putting the answer in correctly but its just not working.
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

when defining a string literal in javascript, what important character do we need to have surrounding the string?

example from the exercise:

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

and here is your code
const myStr =I am a \"double quoted\" string inside \"double quotes\""; // Change this line

Hint: what should come to the right of the equal sign?

Edit: also don’t forget the period at the end of the sentence.

var myStr = “I am a /“double quoted/” string inside /“double quotes/”.”; // Change this line

no need to post solutions in the forum (we are trying to prevent copy-paste of fCC challenge code).
I guess you are good? (Quickest way to indicate that is to mark the post that has helped you to find a solution with the Solution mark.)

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