HTML and CSS Reference
Table G-7 Order Of Precedence
( ) [ ] . new
11 - - ! + - ~ delete typeof void
* / %
<< >> >>>
< < 5 > > 5 in instanceof
55 ! 555 ! 55 ! 5 555
5 15 - 5 * 5 / 5 % 5
Used to separate statements, when used as an empty statement returns normal.
Exits switch statements and loops. Transfers program control to the statement line following the
switch statement or following the terminated loop.
Notations that explain what a script does. Comments are ignored by the interpreter. Single-line
comments begin with //. Multiple-line comments begin with /* and end with */.
Identifies a declared constant value.
Halts execution of a block of statements in a while or for loop and continues execution of the
loop with the next iteration.
Executes the block of statements in a loop until the test condition evaluates to false. Statements
in a loop execute at least once.
Will cause a breakpoint to occur when code is run in a debugger, otherwise, it has no effect.
Executes a block of statements after the try and catch block of statements execute. The finally
block of statements executes whether or not an exception is thrown. A good use for the finally
block of statements is to allow a graceful failure.
Creates a loop that consists of three optional expressions, enclosed in parentheses and separated
by semicolons, followed by a block of statements executed in the loop. The test to terminate a
loop is done before the block of statements in the loop executes.
Iterates a specified variable over all the properties of an object. For each distinct property,
Iterates through object property line arrays and array-like objects (Gecko engine only).