Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Operators


* / %  ^Arithmetic; notice that it is valid to divide by 0
+ -

Arithmetic, but + also works for strings and arrays;

a+b means string concatenation is either a or b is a string

||  &&  |  & ^Boolean and bitwise
==  !=  <  <=  >=  >  ===  !==Comparisons, the result is 0 or 1
.Object access
(bool) (number) (array) (string) (int)Cast, convert a value to another type of value
!Logical negation
= += -= *= /= &= |= ^=Assignment

...