From b4e35cb53521308842514ef60976f3dd2f7085c3 Mon Sep 17 00:00:00 2001 From: Eric Leung Date: Sun, 31 Jan 2016 01:39:47 -0800 Subject: [PATCH] Clarify escape literal quotes instructions - Change example quote to valid JavaScript - Add example of what you will get if you print said example quote - Place emphasis on "if" in the instructions so that it'll hopefully be clear you do not actually need to print it --- .../basic-javascript.json | 7 ++++--- 1 file changed, 4 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 4da080e19b..177db1e806 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -760,10 +760,11 @@ "description": [ "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.", + "var sampleStr = \"Alan said, \\\"Peter is learning JavaScript\\\".\";", + "This signals to JavaScript that the following quote is not the end of the string, but should instead appear inside the string. So if you were to print this to the console, you would get:", + "Alan said, \"Peter is learning JavaScript\".", "

Instruction

", - "Use backslashes to assign the following to myStr variable:", + "Use backslashes to assign a string to the myStr variable so that if you were to print it to the console, you would see:", "I am a \"double quoted\" string inside \"double quotes\"" ], "releasedOn": "January 1, 2016",