Arithmetic Operators

Arithmetic operators that can be used in javascript?

Explanation

Arithmetic Operators: They are operators or syntax used to do arithmetic or math operations like addition, subtraction, multiplication, division, increment, decrement, etc.. These are some time misspelled as arithmatic, arithematic.
Operator Syntax Description
+ Used for addition of two numbers
- Used for subtraction of two numbers
* Used for multiplication of two numbers
/ Used for division of two numbers
% Used to find the division remainder
++ Used to increment a value
-- Used to decrement a value

Example:


<script language="javascript">
var c = (2+4-2)*10;
document.write(" Arithmetic Operations -> "+c);
</script>

Result:



Ask Questions

Ask Question