Regarding the lesson "Escaping Literal Quotes in Strings"

Regarding the lesson "Escaping Literal Quotes in Strings"
0.0 0

#1

Tell us what’s happening:
I am stuck at this lesson where it is said to use backslashes to assign a string to the myStr variable so that if it were to be printed to the console, I would see:

I am a “double quoted” string inside “double quotes”.

When I run the test it says - Variable myStr should contain the string: I am a “double quoted” string inside “double quotes”.

Is there anything I am doing wrong or there is some kind of bug in the software? whatever the reason be I need to pass the lesson to move on to the next one.

Please help.

Your code so far

var myStr = “I am a “double qouted” string inside “double qoutes”.”;

Your browser information:

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

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


#2

Hi @Numerang

Just re-read your initial post about the “Your code so far” section not showing your backslashes.

Can you change your post to show “(backslash)” where you have them in your code? Hopefully we’ll be able to get a better understanding of where you’re at


#3

your solution is …below:
var myStr =“I am a “double quoted” string inside “double quotes”.”; // Change this line