Share via


Subtraction Assignment Operator (-=) (JScript 5.6) 

Subtracts the value of an expression from the value of a variable and assigns the result to the variable.


result -= expression

Arguments

  • result
    Any numeric variable.
  • expression
    Any numeric expression.

Remarks

Using the -= operator is exactly the same as doing the following:

result = result – expression

Requirements

Version 1

See Also

Reference

Subtraction Operator (-) (JScript 5.6)

Concepts

Operator Precedence (JScript 5.6)
Operator Summary (JScript 5.6)