top of page

JavaScript Arithmetic Operators

Arithmetic operators are used to perform arithmetic on numbers (literals or variables).

OperatorDescription

+Addition

-Subtraction

*Multiplication

/Division

%Modulus

++Increment

--Decrement

 

JavaScript Assignment Operators

Assignment operators assign values to JavaScript variables.

OperatorExampleSame As

=x = yx = y

+=x += yx = x + y

-=x -= yx = x - y

*=x *= yx = x * y

/=x /= yx = x / y

%=x %= yx = x % y

 

JavaScript Comparison and Logical Operators

 

OperatorDescription

==equal to

===equal value and equal type

!=not equal

!==not equal value or not equal type

>greater than

<less than

>=greater than or equal to

<=less than or equal to

Javascript Operators

Let's Performe Some Operators

bottom of page