JavaScript operators are symbols used to perform operations on values and variables. Operators are used for calculations, comparisons, logical conditions, assignments, type checks, and more. This reference provides a clear overview of all major JavaScript operators in tabular form.


Arithmetic Operators

OperatorNameSimple Meaning
+AdditionAdds values
-SubtractionSubtracts values
*MultiplicationMultiplies values
/DivisionDivides values
%ModulusRemainder after division
**ExponentiationPower of a number
++IncrementIncreases by 1
--DecrementDecreases by 1

Assignment Operators

OperatorNameSimple Meaning
=AssignmentAssigns value
+=Add and assignAdds then assigns
-=Subtract and assignSubtracts then assigns
*=Multiply and assignMultiplies then assigns
/=Divide and assignDivides then assigns
%=Modulus and assignRemainder then assigns
**=Power and assignPower then assigns

Comparison Operators

OperatorNameSimple Meaning
==EqualValue equal
===Strict equalValue and type equal
!=Not equalValue not equal
!==Strict not equalValue or type not equal
>Greater thanChecks greater
<Less thanChecks smaller
>=Greater than or equalChecks ≥
<=Less than or equalChecks ≤

Logical Operators

OperatorNameSimple Meaning
&&ANDTrue if both true
``
!NOTInverts boolean

String Operators

OperatorNameSimple Meaning
+ConcatenationJoins strings
+=AppendAdds to string

Bitwise Operators

OperatorNameSimple Meaning
&ANDBitwise AND
``OR
^XORBitwise XOR
~NOTBitwise NOT
<<Left shiftShifts bits left
>>Right shiftShifts bits right
>>>Zero-fill right shiftShifts right with zero fill

Type and Object Operators

OperatorNameSimple Meaning
typeofType checkReturns data type
instanceofInstance checkChecks object type
inProperty checkChecks property in object
deleteDeleteDeletes property
newCreate objectCreates new instance
voidUndefinedReturns undefined

Conditional (Ternary) Operator

OperatorNameSimple Meaning
?:TernaryShort if-else

Spread and Rest Operators

OperatorNameSimple Meaning
...SpreadExpands values
...RestCollects values

Summary

JavaScript operators are essential for performing calculations, making decisions, working with strings, handling objects, and controlling program logic. Understanding operator categories and their meanings helps in writing clean, readable, and correct JavaScript code.