Specifications

operand2).
operand1 | operand2
Returns the result of a bit-wise OR on the operands (operand1 and
operand2).
| operator
~ operand
Returns the bit-wise NOT of the operand.
~ operator
operand1 << operand2
Returns the result of a bit-wise left shift of operand1 by the number
of bits specified by operand2. Zeros are shifted in from the right.
<< operator
operand1 >> operand2
Returns the result of a bit-wise (sign propagating) right shift of
operand1 by the number of bits specified by operand2.
>> operator
operand1 >>> operand2
Returns the result of a bit-wise (zero filling) right shift of operand1 by
the number of bits specified by operand2. Zeros are shifted in from
the left.
>>> operator
Special operators
expression ? resultIfTrue : resultIfFalse
This operator evaluates its first operand, the expression. If the expression is
true, the value of the second operand (resultIfTrue) is returned; otherwise the
value of the third operand (resultIfFalse) is returned.
?: operator
expression1, expression2
This operator evaluates its first and second operand (expression1 and
expression2) and returns the value of the second operand (expression2).
, operator
The comma operator can be subtle and is best reserved only for use in argument
lists.
var variable = function( optArguments ) { Statements }
This operator is used to create anonymous functions. Once assigned, the
variable is used like any other function name, example variable (1, 2, 3). Specify
function
operator
the argument names (in optArguments) if named arguments are required. If
no optArguments are specified, arguments may still be passed and will be
available using the arguments list.
396
Enfocus Switch 10