JavaScript syntax: Difference between revisions

Content deleted Content added
case fix
String: As of the current date, the portion that I removed is no longer accurate, and I'm citing the same source on today's date as was previously cited in 2018.
Line 311:
 
=== 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 the [[Grave accent#Use in programming|backquote]] character (`, a.k.a. grave accent or backtick) to quote multiline literal strings, but this is supported only on certain browsers as of 2016: Firefox and Chrome, but not Internet Explorer 11.<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals|title=Template literals|website=MDN Web Docs|language=en-US|access-date=20182023-0511-0204}}</ref>
 
<syntaxhighlight lang="javascript">