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 Code:
<script language="javascript">
var c = (2+4-2)*10;
document.write(" Arithmetic Operations -> "+c);
</script>
Result:
A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script.
Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.