From 2f23fb544d6069e9980d3119f391785ea735adfe Mon Sep 17 00:00:00 2001 From: Ariel Date: Wed, 28 Nov 2018 13:58:48 -0700 Subject: [PATCH] Fixes minor typo (#34326) "should not be be" changed to "should not be" --- .../quoting-strings-with-single-quotes.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.english.md index b5e9b492ad..170a4dd324 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/quoting-strings-with-single-quotes.english.md @@ -13,7 +13,7 @@ The reason why you might want to use one type of quote over the other is if you However, this becomes a problem if you need to use the outermost quotes within it. Remember, a string has the same kind of quote at the beginning and end. But if you have that same quote somewhere in the middle, the string will stop early and throw an error.
goodStr = 'Jake asks Finn, "Hey, let\'s go on an adventure?"';
badStr = 'Finn responds, "Let's go!"'; // Throws an error
In the goodStr above, you can use both quotes safely by using the backslash \ as an escape character. -Note
The backslash \ should not be be confused with the forward slash /. They do not do the same thing. +Note
The backslash \ should not be confused with the forward slash /. They do not do the same thing. ## Instructions