Dec 20, 2012

javascript Operator Precedence 运算符优先级

Operator Description
. [] () Field access, array indexing, function calls, and expression grouping
++ -- - ~ ! delete new typeof void Unary operators, return data type, object creation, undefined values
* / % Multiplication, division, modulo division
+ - + Addition, subtraction, string concatenation
<< >> >>> Bit shifting
< <= > >= instanceof Less than, less than or equal, greater than, greater than or equal, instanceof
== != === !== Equality, inequality, strict equality, and strict inequality
& Bitwise AND
^ Bitwise XOR
| Bitwise OR
&& Logical AND
|| Logical OR
?: Conditional
= OP= Assignment, assignment with operation
, Multiple evaluation

No comments:

Post a Comment