Escaping Literal Quotes in Strings 1

Tell us what’s happening:
Describe your issue in detail here.
Help please what am I doing wrong? But I keep getting this error message. 1 | var myStr = “I am a"double quoted"string inside"double quotes”."; // Change this line
| ^
2 | console.log(myStr)

Your code so far


var myStr = "I am a\"double quoted\"string inside"double quotes"."; // Change this line
console.log(myStr)

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Remember, you need to escape ALL double quotes in the string that do not begin/end the string.

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