A line of script source text is that fragment of script that is placed between two consecutive line terminators.
The placement of comment blocks can affect where the line terminator appears to be.
Implementations may or may not strip off leading and trailing whitespace.
Trailing whitespace that is inside a string literal should not span a line terminator.
A line of script source is interpreted and executed as a whole.
Some implementations may place limits on the maximum length of a line of script source text. These limitations are most likely to be a problem in embedded interpreters and are least likely to cause any problems in web browsers.
Prev | Home | Next |
Limits | Up | Line terminator |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |