JavaScript - Operators

javascript

Operator precedence:

. [] () // Refinement and invocation
delete new type of + - ! // Unary operators
* / % // Multiplication, division, and modulo
+ - // addition or concatenation, substraction
>= <= < // Inequality comparison
=== !== // Equality
&&  // Logical AND
||  // Logical OR
?:  // Ternary

The && operator produces the value of its first operand if the first operand
is falsy.  Otherwise, it produces the value of the second operand.

The || operator produces the value of its first operand if the first operand
is truthy.  Otherwise, it produces the value of the second operand.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License