Semi-colon (;) (Delimiter)

Semi-colon characters are used to mark the end of a statement.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise server - 2.0
Opera - 3.0
JavaScript syntax:-aStatement;
Argument list:aStatementA JavaScript statement

Semi-colon characters are used to mark the end of a statement, separating one from another.

JavaScript is somewhat forgiving and will place semi-colons into the script automatically as needed except in some rare cases. Refer to the discussion on Automatic Semi-colon Insertion for more details.

Placing two semi-colons one after the other indicates a null statement. A line terminator can separate them and an optional comment is also permitted.

See also:Automatic semi-colon insertion, Empty statement (;), Expression statement, Line terminator, Statement, var

Cross-references:

ECMA 262 edition 2 - section - 12.2

ECMA 262 edition 2 - section - 12.3

ECMA 262 edition 2 - section - 12.4

ECMA 262 edition 3 - section - 12.2

ECMA 262 edition 3 - section - 12.3

ECMA 262 edition 3 - section - 12.4

Wrox Instant JavaScript - page 18