Skip to content

Subtraction Assignment

Subtraction assignment operator (-=) can be used subtract and assign value to a variable.

Syntax
variable -= expr
Example
a -= 3
b -= 4