Line (Definition)

A fragment of script source text.

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.

See also:Comment, Comment (// and /* ... */), Line terminator, Multi-line comment, Single line comment