diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md index 537c3ec2bf4..df8bafee9d7 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings.md @@ -11,12 +11,12 @@ dashedName: escape-sequences-in-strings Quotes are not the only characters that can be escaped inside a string. There are two reasons to use escaping characters: -1. To allow you to use characters you may not otherwise be able to type out, such as a carriage return. +1. To allow you to use characters you may not otherwise be able to type out, such as a newline. 2. To allow you to represent multiple quotes in a string without JavaScript misinterpreting what you mean. We learned this in the previous challenge. -
CodeOutput
\'single quote
\"double quote
\\backslash
\nnewline
\rcarriage return
\ttab
\bword boundary
\fform feed
+
CodeOutput
\'single quote
\"double quote
\\backslash
\nnewline
\ttab
\rcarriage return
\bword boundary
\fform feed
*Note that the backslash itself must be escaped in order to display as a backslash.*