JavaScript Operators

Arithmetic Operators

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Division
%Modulus (Reminder)
++Increment
--Decrement

Comparison Operators

OperatorDescription
= =Equal To
= = =Exactly Equal To
!=Not Equal To
<Less Than
>Greater Than
<=Less Than or Equal To
>=Greater Than or Equal To

Assignment Operators

OperatorDescription
=Simple Assignment
+=Add and Assignment
-=Subtract and Assignment
*=Multiply and Assignment
/=Divide and Assignment
%=Modulus and Assignment

Logical Operators

OperatorDescription
&&Logical AND
||Logical OR
!Logical NOT

Bitwise Operators

OperatorDescription
&Bitwise AND
|Bitwise OR
^Bitwise XOR
˜Bitwise NOT
<<Left Shift
>>Right Shift
>>>Right Shift with Zero

Special Operators

OperatorDescription
NEWCreates an instance of an object type.
DELETEDeletes property of an object.
DOT(.)Specifies the property or method.
VOIDDoes not return any value. Used to return a URL with no value.