0% found this document useful (0 votes)
192 views2 pages

22 - Operators Precedence and As - Desconocido PDF

The document outlines the precedence of operators in JavaScript. It lists the operator types from highest to lowest precedence, along with their associativity and individual operators. For example, grouping operators have the highest precedence and associate from left to right, while assignment operators have relatively low precedence and associate from right to left.

Uploaded by

xenturion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
192 views2 pages

22 - Operators Precedence and As - Desconocido PDF

The document outlines the precedence of operators in JavaScript. It lists the operator types from highest to lowest precedence, along with their associativity and individual operators. For example, grouping operators have the highest precedence and associate from left to right, while assignment operators have relatively low precedence and associate from right to left.

Uploaded by

xenturion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

JavascriptOperatorPrecedence

Precedence Operatortype Associativity Individualoperators


19 Grouping n/a ()

18 MemberAccess lefttoright .

ComputedMemberAccess lefttoright []

new(withargumentlist) n/a new()

17 FunctionCall lefttoright ()

new(withoutargumentlist) righttoleft new

16 PostfixIncrement n/a ++

PostfixDecrement n/a

15 LogicalNOT righttoleft !

BitwiseNOT righttoleft ~

UnaryPlus righttoleft +

UnaryNegation righttoleft

PrefixIncrement righttoleft ++

PrefixDecrement righttoleft

typeof righttoleft typeof

void righttoleft void

delete righttoleft delete

14 Multiplication lefttoright *

Division lefttoright /

Remainder lefttoright %

13 Addition lefttoright +

Subtraction lefttoright

12 BitwiseLeftShift lefttoright <<

BitwiseRightShift lefttoright >>

BitwiseUnsignedRightShift lefttoright >>>

11 LessThan lefttoright <

LessThanOrEqual lefttoright <=

GreaterThan lefttoright >

GreaterThanOrEqual lefttoright >=

in lefttoright in

instanceof lefttoright instanceof

10 Equality lefttoright ==

Inequality lefttoright !=

StrictEquality lefttoright ===

StrictInequality lefttoright !==

9 BitwiseAND lefttoright &


8 BitwiseXOR lefttoright ^

7 BitwiseOR lefttoright |

6 LogicalAND lefttoright &&

5 LogicalOR lefttoright ||

4 Conditional righttoleft ?:

3 Assignment righttoleft =
+=
=
*=
/=
%=
<<=
>>=
>>>=
&=
^=
|=
2 yield righttoleft yield

1 Spread n/a ...


0 Comma/Sequence lefttoright ,

OperatorPrecedenceJavascriptbyMozillaContributorsislicensedunderCCBYSA2.5.

You might also like