From 04c2c7980b2485c53e7324ea9adb465c443b1f94 Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Fri, 25 Dec 2015 03:52:26 +0530 Subject: [PATCH] Escaping Literal Quotes in Strings --- .../basic-javascript.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 7a57b06e4d..3697f6e2cb 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -861,10 +861,13 @@ "id": "56533eb9ac21ba0edf2244b5", "title": "Escaping Literal Quotes in Strings", "description": [ - "When you are defining a string you must start and end with a double or single quote. What happens when you need a literal quote inside of your string?", - "In Javascript you can escape a quote inside a string by placing a backslash (\\) in front of the quote. This signals Javascript that the following quote is not the end of the string, but should instead should appear inside the string.", + "When you are defining a string you must start and end with a single or double quote. What happens when you need a literal quote: \" or ' inside of your string?", + "In JavaScript, you can escape a quote from considering it as an end of string quote by placing a backslash (\\) in front of the quote.", + "\"Alan said, \\\"Peter is learning JavaScript\\\".\"", + "This signals JavaScript that the following quote is not the end of the string, but should instead appear inside the string.", "

Instruction

", - "Use backslashes to assign the following to myStr:
\"I am a \"double quoted\" string inside \"double quotes\"\"" + "Use backslashes to assign the following to myStr variable:", + "\"I am a \"double quoted\" string inside \"double quotes\"\"" ], "releasedOn": "11/27/2015", "tests": [