The operators handle various operations such as assign values, evaluate data, group expressions, perform arithmetic and more.
- delete an object property or a value at a specific array index.
- returns true if left operand is in the right operand.
- returns true if left operand is an object instance of the right operand.
- create a new instance of an object.
- local access to an object.
- returns the object type.
- evaluate expression and return 'undefined'.
- pause and resume a generator function.
Assignment and Grouping Operators=
assign value of operand b to operand a.
group expressions to set precedence.
concatenate string data.
append string data.
check if a is equal to b
check if a is strictly equal to b
check if a is not equal to b
check if a is strictly not equal to b
check if a is less than b
check if a is greater than b
check if a is less than or equal to b
check if a is greater than or equal to b
perform addition on numbers
perform subtraction on numbers
perform multiplication on numbers
perform division on numbers
increment a number by one
decrement a number by one
modulus - find the remainder
(logical or) evaluate a or b or c or etc...
(logical and) evaluate a and b and c and etc...
(logical not) evaluate if a is not
(comma) establish multiple parameters
Shorthand Assignment Operators+=
a += b is shorthand for: a = a + b
a -= b is shorthand for: a = a - b
a *= b is shorthand for: a = a * b
a /= b is shorthand for: a = a / b
a %= b is shorthand for: a = a % b
a <<= b is shorthand for: a = a << b
a >>= b is shorthand for: a = a >> b
a >>>= b is shorthand for: a = a >>> b
a &= b is shorthand for: a = a & b
a ^= b is shorthand for: a = a ^ b
a |= b is shorthand for: a = a | b
enables an object to spread where comma separated values are expected.