Tell us what’s happening:
Question about : Escaping literal quotes in Strings
Dear all,
Good afternoons,
Could someone please explain me the usage of the backslashes
and where can i put the backslash and the quotes in the statement for the assignment of
the variables?.
This is the exercise i am trying to solve but sadly i had no good luck .
**Your browser information:**
User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36`.
**Link to the challenge:**
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings
We need to assign to the myStr variable a string that contains such " characters. Inside of a string we need to write them with backlslash, so: \". If we write them without backslash, javaScript language is thinking not about this " character, that is necessary to output, but about the end of a string, because our string in this challenge we should write inside of double qoutes. var someSimilarStr ="Required for a challenge string \"with quotes\" and \"other qoutes\" here".