- | NN 2 IE 3 ECMA 1 |
This is the negation operator. This unary operator negates the value of the single operand. For example, in the following statements: |
|
the value of b becomes -5. A negation operator applied to a negative value returns a positive value. |
|
Example | |
var myOpposite = -me; |