Operators
The operator precedence of Jangaroo follows the rules of ActionScript. The following list orders the operators with increasing precedence:
- =
*=
/=
%=
+=
-=
<<=
>>=
>>>=
&=
^=
|= - ?: (ternary)
- ||
- &&
- |
- ^
- &
- ==
!=
===
!== - <
>
<=
>=
as
in
instanceof
is - <<
>>
>>> - +
- - *
/
% - ++ (prefix)
-- (prefix)
+ (prefix)
- (prefix)
! (prefix)
~ (prefix)
typeof (prefix) - .
() (postfix)
[] (postfix)
{} (postfix) - ++ (postfix)
-- (postfix) - ::
Operators are binary unless noted otherwise. Operators within one bullet point have got equal precedence.