Link Search Menu Expand Document

Operator Precedence

Operator Precedence Table

연산 우선순위

→ value가 높을수록 우선

ValueOperatorDescriptionExample
20()Expression grouping(3 + 4)
19.Memberperson.name
19[]Memberperson[“name”]
19()Function callmyFunction()
19newCreatenew Date()
17++Postfix Incrementi++
17Postfix Decrementi–
16++Prefix Increment++i
16Prefix Decrement–i
16!Logical not!(x==y)
16typeofTypetypeof x
15**Exponentiation (ES2016)10 ** 2
14*Multiplication10 * 5
14/Division10 / 5
14%Division Remainder10 % 5
13+Addition10 + 5
13-Subtraction10 - 5
12«Shift leftx « 2
12»Shift rightx » 2
12»>Shift right (unsigned)x »> 2
11<Less thanx < y
11<=Less than or equalx <= y
11>Greater thanx > y
11<=Greater than or equalx >= y
10==Equalx == y
10===Strict equalx === y
10!=Unequalx != y
10!==Strict unequalx !== y
9&Bitwise ANDx & y
8^Bitwise XORx ^ y
7|Bitwise ORx | y
6&&Logical ANDx && y
5||Logical ORx || y
4?:Condition? “Yes” : “No”
3+=Assignmentx += y
3/=Assignmentx /= y
3-=Assignmentx -= y
3*=Assignmentx *= y
3%=Assignmentx %= y
3«=Assignmentx «= y
3»=Assignmentx »= y
3»>=Assignmentx »>= y
3&=Assignmentx &= y
3^=Assignmentx ^= y
3|=Assignmentx |= y
2yieldPause Functionyield x
1,Comma5, 6

이 웹사이트는 jekyll로 제작되었습니다. Patrick Marsceill, Distributed by an MIT license.