Need assistance in Escaping Literal Quotes in Strings - Beta Version

Challenge Name

Escaping Literal Quotes in Strings has an issue.

Issue Description

Browser Information

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36.

Screenshot

Your Code



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



What about using `` instead? (ES6) You don’t have to worry about either ’ or "

Guys, click on the link - he’s saying there’s a problem with the exercise itself…cannot type in code at all:

Escaping Literal Quotes in Strings

@N4thyra I can’t use single quotes cause the exercise says

You should use two double quotes (") and four escaped double quotes (")

@Soupedenuit Oh no, the exercise starts with var myStr = " ";
However with the code I have inputed, it’s refusing to pass the second test.

Variable myStr should contain the string: I am a “double quoted” string inside “double quotes”.

@anasey01 - What @MindOfThomas is saying is you have:

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

and you should have:

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

@rmdawson71 @MindOfThomas

It worked! Thank you!