Java Reference
In-Depth Information
Name
Introduced
Meaning
Shorthand zero-fi ll
right-shift
same as
v1 = v1 >>> v2
JavaScript 1.0
v1 >>>= v2
Shorthand AND
same as
v1 = v1 & v2
JavaScript 1.0
v1 &= v2
Shorthand XOR
same as
v1 = v1 ^ v2
JavaScript 1.0
v1 ^= v2
Shorthand OR
same as
v1 = v1 | v2
JavaScript 1.0
v1 |= v2
Comparison Operators
Comparison operators allow you to compare one variable or value with another. Any comparison state-
ment returns a Boolean value.
Name
Introduced
Meaning
Equal
JavaScript 1.0
v1 == v2
True if two operands are strictly equal or equal once cast to
the same type.
Not equal
JavaScript 1.0
v1 != v2
True if two operands are not strictly equal or not equal once
cast to the same type.
Greater than
JavaScript 1.0
v1 > v2
True if left-hand side (LHS) operand is greater than right-
hand side (RHS) operand.
Greater than or
equal to
JavaScript 1.0
v1 >= v2
True if LHS operand is greater than or equal to RHS
operand.
Less than
JavaScript 1.0
v1 < v2
True if LHS operand is less than RHS operand.
Continued
Search WWH ::




Custom Search