JavaScript Arithmetic Operators

JavaScript tutorial: Arithmetic and assignment operator

Arithmetic and assignment operator

There are different types of Operators in JavaScript. Arithmetic operator are in the bellow:

OperatorDescription
+Addition
Subtraction
*Multiplication
**Exponentiation 
/Division
%Modulus (Remainder)
++Increment
Increment
Arithmetic Operators

Different kinds of Arithmetic Operator.

6+3 // Addition Operator
9
5-3 // Subtraction Operator
2
5*3 // Multiplication Operator.
15
5/3 // Division
1.6666666666666667
8%3 // Modulus (Remainder) Operator
2
var num = 10;
undefined
++num // Increment Operator
11
num++ //Post Increment Operator.
11
num-- // Post Decrement Operator.
12
--num // Pre-derement Opprentor
10

Leave a Reply

affiliate money machine

Hey, don't miss
Free
‘Digital Marketing’ E-book

Affiliate Money Machine

Sign up for our newsletter with the best digital marketing tools and affairs inspirations.