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.
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
Prev | Home | Next |
Semantic event | Up | SendMail object |
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. |