The JavaScript Arithmetic Operators
Performing mathematical operations and calculations is a common task in programming languages. In JavaScript, there are several operators available to work with numbers. Addition (+) The addition operator (+) is used to add two numbers together. It can also be used for string concatenation. const three = 1 + 2 const four = three + 1 const three = 1 + 2 three + 1 // 4 'three' + 1 // "three1" Subtraction (-) The subtraction operator (-) is used to subtract one number from another....