JavaScript syntax: Difference between revisions

Content deleted Content added
clean up, typo(s) fixed: Furthermore → Furthermore, using AWB
String: Added brief mention of multiline string literals (supported within the language)
Line 219:
 
=== String ===
A [[String (computer science)|string]] in JavaScript is a sequence of characters. In JavaScript, strings can be created directly (as literals) by placing the series of characters between double or single quotes. Such strings must be written on a single line, but may include escaped newline characters (such as \n). The JavaScript standard allows accent grave (back-quote, back tick) to quote multiline literal strings, but this is supported only on certain browsers as of 2016: Firefox and Chrome, but not Internet Explorer 11.{{Citation needed}}
 
<syntaxhighlight lang=JavaScript>