JavaScript Arithmetic Operators

JavaScript Arithmetic Operators

Arithmetic operators are used in JavaScript to perform arithmetic operations on values, such as addition, subtraction, multiplication, and division. Here are some examples:

1) Addition (+): This operator is used to add two or more values together. For example:

2) Subtraction (-): This operator is used to subtract one value from another. For example:

3) Multiplication (*): This operator is used to multiply two or more values together. For example:

4) Division (/): This operator is used to divide one value by another. For example:

5) Modulo (%): This operator is used to find the remainder of a division operation. For example:

6) Increment (++) and Decrement (--): These operators are used to increase or decrease the value of a variable by 1. For example:

These are some examples of arithmetic operators in JavaScript. There are also other operators such as exponentiation (**), which is used to raise a value to a power, and assignment operators (+=, -=, *=, /=, %=), which combine arithmetic operations with assignment.

That's it for JavaScript Arithmetic Operators. Thanks for learning ❤️