Subtraction
Syntax
x - yExplanation
The subtraction operator returns the difference of the two operands as a new number.
Examples
2 - 1 // 1
-1 - 1 // -2
-1 - -1 // 0Last updated
Was this helpful?
x - yThe subtraction operator returns the difference of the two operands as a new number.
2 - 1 // 1
-1 - 1 // -2
-1 - -1 // 0Last updated
Was this helpful?