JavaScript Operators

In JavaScript operator is a sign that perform a special operation, for example, + is an operator that is used for adding two elements. JavaScript has many types of operators for example, arithmetic, logical and comparison operators.

Arithmetic Operators in JavaScript

+      addition
       subtraction
*      multiplication
/      division
%    Modulus or remainder
++   Increment
—     Decrement

Assignment Operators in JavaScript

=     assignment

Logical Operators in JavaScript

! not

&& and

|| or

 

Concatenation Operator in JavaScript

+       concatenation/Combination

Comparison Operators in JavaScript

== equal to
=== equal to in value and type
!= not equal to
!== not equal and don’t convert
<     less than
>     greater than
<=   less than or equal to
>=   greater than or equal to