x - y
The subtraction operator returns the difference of the two operands as a new number.
2 - 1 // 1 -1 - 1 // -2 -1 - -1 // 0
Last updated 5 years ago
Was this helpful?