Skip to main content

JS Operatorreserved JS Syntax to perform built-in function on Operands

Source: Expressions and operators - JavaScript | MDN

aka Operator

!

Logical NOT Operator to invert Boolean Context of operand

&&

Logical AND Operator to return first Falsy or last Truthy

=

Assignment Operator to bind Value to Identifier & save at Memory Address

??

Nullish Coalescing Operator to assign left calling Operand if !== null/undefined, else assign fallback value (right Operand)

Basic Operators

Coercion

(mechanism) to Implicit auto convert Type of Primitive Operand by JS Compiler

Comparison Operator

delete

JS Operator to remove property from Object

Destructuring

JS Syntax shorthand to extract elements from iterable & assign to Value

import()

JS Operator to Dynamically load Module via Promise

instanceof

JS Operator to return boolean if __proto__ (of Constructor Function) exists on calling Operand's prototype chain

JS Operator only work on Primitive Value - if Operand is Object, will Coerce into Primitive

JS Operators apply Coercion to Operands so it can work with them

new

JS Operatorto call Constructor Function, assign this keyword & link to Prototype

Operand

Variable to manipulate by JS Operator

Rest Parameter

... JS Syntax prefix Identifier to receive Array with arb remaining args

Short-Circuiting

Spread Operator

JS Operator to return comma separated list from iterable

typeof

JS Operator return string of Operand Type

void

JS Operator to evalute Operand as Expression & return undefined

Source: void operator - JavaScript | MDN

||

Logical OR Operator to return first Truthy or last Falsy

References

  1. OperandVariable to manipulate by JS Operator

  2. newJS Operatorto call Constructor Function, assign this keyword & link to Prototype

  3. ?? ↔ Nullish Coalescing Operator to assign left calling Operand if !== null/undefined, else assign fallback value (right Operand)

  4. + ↔ Addition Operator to convert Operand to Primitive & then add/join in either String Mode or Number Mode

  5. voidJS Operator to evalute Operand as Expression & return undefined

  6. typeofJS Operator return string of Operand Type

  7. Spread OperatorJS Operator to return comma separated list from iterable

  8. instanceofJS Operator to return boolean if __proto__ (of Constructor Function) exists on calling Operand's prototype chain

  9. import()JS Operator to Dynamically load Module via Promise

  10. deleteJS Operator to remove property from Object

  11. Bitwise Assignment OperatorJS Operator to Coerce Operand to 32-bit binary, compute math as bits & return as number

  12. ?Declarative JS Operator to assign first Truthy Operand else fallback

  13. = ↔ Assignment Operator to bind Value to Identifier & save at Memory Address

  14. ! ↔ Logical NOT Operator to invert Boolean Context of operand

  15. && ↔ Logical AND Operator to return first Falsy or last Truthy

  16. % ↔ Modulo Operator to return remainder from integer division

  17. || ↔ Logical OR Operator to return first Truthy or last Falsy