The addition sign (+) serves as the addition operator, performing the function of adding numbers.
Example
let x = 5; let y = 2; let z = x + y; |
The subtraction sign (–) acts as the subtraction operator, used for subtracting numbers.
Example
let x = 5; let y = 2; let z = x – y; |