From bdc7c22ee6965ab1a88e3face720c208094a93fe Mon Sep 17 00:00:00 2001 From: JeanMendes <42754063+JeanMendes@users.noreply.github.com> Date: Fri, 8 Mar 2019 19:47:58 -0300 Subject: [PATCH] Update "Escape Sequences in Strings" stub (#34006) * Update "Escape Sequences in Strings" stub * fix: replaced backspace with word boundary --- .../escape-sequences-in-strings/index.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/index.md index b018290c41..bfda684b5f 100644 --- a/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/index.md +++ b/guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/index.md @@ -3,8 +3,19 @@ title: Escape Sequences in Strings --- ## Escape Sequences in Strings -This is a stub. Help our community expand it. +* Escape sequences allow you to use characters you might not otherwise be able to type out, such as a word boundary. +* By following this diagram with character combinations you will be able to assign escape sequences to the string. +* ’ single quote +* " double quote +* \ backslash +* \n new line +* \r carriage return +* \t tab +* \b word boundary +* \f form feed +* The challenge requires that you don't use space between characters. -This quick style guide will help ensure your pull request gets accepted. - - +## Solution +```javascript +var myStr = "FirstLine\n\t\\SecondLine\nThirdLine"; +```