JavaScript Arithmetic Operators

JavaScript Arithmetic Operators are used to compute arithmetic operations on given numeric values.

Arithmetic Operator – Symbol – Example

JavaScript supports the following arithmetic operators.

Arithmetic OperationOperator SymbolExample
Addition+a + b
Subtractiona - b
Multiplication*a * b
Division/a / b
Modulus%a % b
Increment++a++, ++a
Decrementa--, --a
ADVERTISEMENT

Tutorials

The following JavaScript tutorials cover each of these arithmetic operators in detail.

Example

In the following example, we take two values, and perform different Arithmetic Operations on these values.

index.html

Conclusion

In this JavaScript Tutorial, we learned about Arithmetic Operators, their syntax, and usage with examples.