What do i do for this

Tell us what’s happening:

Your code so far


var myStr = "I am a double quoted string inside double quotesw."; // Change this line


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15.

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

You should use the double quotes in your string where shown, and escape them with a backslash so they are not considered delimiters for the string
Also, careful you have an extra letter at the end of the string

i don’t really know what that means do u know how i am supposed to write it
also thank u for being very helpful

First copy the provided string, including all the double quotes, and assign it to the variable

You will get an error, ignore it

Now you need to escape the quotes inside the string, putting a \ right before the double quotes to escape them
Example of string with escaped quotes

str = "And then she said \"Hi, Alan!\" while waving."
1 Like