Operators

  • Arithmetic Operators

    • [+] Addition

    • [-] Subtraction

    • [*] Multiplication

    • [**] Exponentiation

    • [/] Division [%]

    • Modulus

    • [++] Increment [Postfix, Prefix]

    • [--] Decrement [Postfix, Prefix]

  • Comparison Operators

    • [>] Greater than

    • [<] Less than

    • [>=] Greater than or equal to

    • [<=] Less than or equal to

    • [?] Ternary operator

    • [==] Equal to

    • [!=] Not equal

    • [===] Equal value and equal type

    • [!==] Not equal value or not equal type

  • Logical Operators

    • [&&] Logical And

    • [||] Logical Or

    • [!] Logical Not

  • Bitwise Operators

    • typeof

    • instanceof

  • Type Operators

    • [&] AND

    • [|] OR

    • [~] NOT

    • [^] XOR

    • [<<] Left Shift

    • [>>] Right Shift

    • [>>>] Unsigned Right Shift

  • Assignment Operators

    • =

    • +=

    • -=

    • *=

    • /=

    • %=

    • **=

    • <<=

    • >>=

    • >>>=

    • &=

    • ^=

    • |=

Last updated