July 1998
Intermediate to advanced
1456 pages
65h 5m
English
- — NN 2 IE J1 ECMA 1
The negation operator. This unary operator negates the value of the single operand. For example, in the following statements:
a = 5 b = -a
the value of b becomes -5. A negation operator
applied to a negative value returns a positive value.
var myOpposite = -me
Read now
Unlock full access