➢Assignment operators assign values to JavaScript variables.
Operator
Example
Same As
=
x = y
x = y
+=
x += y
x = x + y
-=
x -= y
x = x- y
*=
x *= y
x = x * y
/=
x /= y
x = x / y
%=
x %= y
x = x & y
**=
x **= y
x = x ** y
JavaScript Comparison Operators
Operator
Description
==
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
?
ternary operator
JavaScript Logical Operators
Operator
Description
&&
logical and
||
logical or
!
logical not
JavaScript Bitwise Operators
Operator
Description
typeof
Returns the type of a variable
instanceof
Returns true if an object is an instance of an object type
JavaScript Bitwise Operators
➢Bit operators work on 32 bits numbers.
➢Any numeric operand in the operation is converted into a 32 bit number. The result is converted back to a JavaScript number.