What is an operator?
A symbol used to perform a built-in function on one - it is then called
unary operator- or more operands (data values).
JavaScript has the following operators:
Assignment:
An assignment operator assigns a value to its left operand based on the
value of its right operand or both left and right operands.
Comparison:
A comparison operator compares its operands of various data types and
returns a Boolean value (true or false.)
Arithmetic:
Arithmetic operators take numerical values (either literals or variables)
as their operands and return a single numerical value.
String:
String operators take string values (either literals or variables) as
their operands and return a single string value.
Logical:
Logical operators take Boolean (logical) values as operands and return a
Boolean value.
Bitwise:
Arithmetic operators take numerical values (either literals or variables)
as their operands and return a single numerical value. Bitwise operators
work on the bits representing these numerical values . Those numerical
values are all represented as 32 bit integers.
Special operators:
Each special operator is entirely different from the rest.
Operators Example