|
Statements and blocks |
|
|
An expression becomes a statement when it is followed by a semicolon: var x = 5; y = ++x * 7; foo(); Braces { and } are used to group statements into a compound statement, so they are syntactically equivalent to a single statement:
{ y=z; foo(); }
The comma may be used to group several expressions into a single statement too: y=z, foo(); |
||||||||
| Copyright © IBK Landquart | Last revision: 27.05.2002 | << Back Top Next >> |