๐งtable of operators
๐ง under construction -> fix table precedence
JS โฉ statement โฉ expression โฉ operator โฉ table of operators
property access and invocation expressions have higher precedence than any of the operators.
( ... )
obj . prop
obj [ prop ]
with argument list
f ( args )
obj ?. prop
without argument list
++
post-increment
--
post-decrement
!
bool -> bool
int -> int
any -> num
-
unary - (negative)
num -> num
++
pre-increment
--
pre-decrement
any -> str
any -> undef
(n, n) -> n
(n, n) -> n
(n, n) -> n
(s, s) -> s
<<
shift left
(i, i) -> i
>>
shift right (sign extension)
(i, i) -> i
>>>
shift right (0 extension)
(i, i) -> i
< <= > >=
(n, n) -> b
< <= > >=
(s, s) -> b
test object class
(o, f) -> b
test property existence
(a, o) -> b
(a, a) -> b
!=
not equal (sloppy)
(a, a) -> b
(a, a) -> b
!==
not equal (strict)
(a, a) -> b
&
bitwise AND
(i, i) -> i
^
bitwise XOR
(i, i) -> i
|
bitwise OR
(i, i) -> i
&&
(a, a) -> a
||
(a, a) -> a
(a, a) -> a
(b, a, a) -> a
**= *= /= %= += -= &= ^= |= <<= >>= >>>=
operate/assign
(a, a) -> a
Last updated