Escaping Literal Quotes in String

Escaping Literal Quotes in String
0

Tell us what’s happening:

**Your code so far

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

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings

you need to escape all the quotes in the string

1 Like

keep in mind you need to use a back slash before each character you want to escape.

You are only attempting to escape one character in this string.

1 Like