Basic JavaScript - Escaping Literal Quotes in Strings

I am stuck here. I have tried all the times different answers watching the others

var myStr = “I am a "double quoted " string inside " double quotes".”;

I have been trying with removing or keeping the spaces but nothing changes

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Hi, Lulu26, welcome to the community!

It is normal to feel frustrated while learning.

Your myStr need opening and closing double quote:

myStr = " i am a string "

More example of Escape Character here >>>> JavaScript Strings

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