Java Reference
In-Depth Information
naMe
introduced
Meaning
Assignment
JavaScript 1.0
Sets variable v1 to the value of
variable v2 .
var v1 = v2;
Shorthand addition or Shorthand
concatenation same as v1 = v1 + v2
JavaScript 1.0
v1 += v2
Shorthand subtraction same as
v1 = v1 v2
JavaScript 1.0
v1 = v2
Shorthand multiplication same as
v1 = v1 * v2
JavaScript 1.0
v1 *= v2
Shorthand division same as
v1 = v1 / v2
JavaScript 1.0
v1 /= v2
Shorthand modulus same as
v1 = v1 % v2
JavaScript 1.0
v1 %= v2
Shorthand left‐shift same as
v1 = v1 << v2
JavaScript 1.0
v1 <<= v2
Shorthand right‐shift same as
v1 = v1 >> v2
JavaScript 1.0
v1 >>= v2
Shorthand zero‐fill 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
statement 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.
Search WWH ::




Custom Search