From d6fddbbf3ed569e0ad5867ae3310f6f8b0a4c2d3 Mon Sep 17 00:00:00 2001 From: Michael Zhou Date: Mon, 28 Mar 2016 15:06:44 -0400 Subject: [PATCH] Remove a false claim about multi-line strings The claim that multi-line strings are not part of ECMAScript is false. See the "LineContinuation" production in: http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4. Removed the false claim. --- javascriptguide.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/javascriptguide.xml b/javascriptguide.xml index b14d7bf..bf1741a 100644 --- a/javascriptguide.xml +++ b/javascriptguide.xml @@ -619,8 +619,7 @@

The whitespace at the beginning of each line can't be safely stripped at compile time; whitespace after the slash will result in tricky - errors; and while most script engines support this, it is not part - of ECMAScript.

+ errors.

Use string concatenation instead:

var myString = 'A rather long string of English text, an error message ' +