Reference

Operators

Arithmetic Operators

  Addition        +
  Subtraction     -
  Multiplication  *
  Division        /
  Modulous        %

Shortcuts

  x += 4; is equivalent to  x = x + 4;
  x -= 4;       ...         x = x - 4;
  x *= 4;       ...         x = x * 4;
  x /= 4;       ...         x = x / 4;

Exponentiation

X raised to the power of 2 (x squared) is,

  Math.pow(x, 2)

Increment and Decrement operators

  x++;  is equivalent to  x = x + 1;
  x--;        ...         x = x - 1;

Relational Operators

  Equality                  ==
  Inequality                !=
  Greater than              >
  Less than                 <
  Greater than or equals to >=
  Less than or equals to    <=
  Logical "and"             &&
  Logical "not"             ||