Skip to content

Language ~ Operators

Frank Wienberg edited this page Mar 14, 2014 · 2 revisions

Jangaroo Language: 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.

Clone this wiki locally