Content deleted Content added
→String: Added brief mention of multiline string literals (supported within the language) |
m Dating maintenance tags: {{Citation needed}} |
||
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|date=February 2016}}
<syntaxhighlight lang=JavaScript>
|