pxt-calliope/docs/js/operators.md
2016-07-25 16:53:33 -04:00

1.0 KiB

Operators

The following JavaScript operators are supported for the micro:bit. Note that for the micro:bit all arithmetic is performed on integers, rather than floating point. This also is true when simulating in the browser.

Assignment, arithmetic and bitwise

Comparision and conditional

More

  • lambda functions () => { ... }
  • array literals [1, 2, 3]
  • strings, with a few common methods
  • string templates (`x is ${x}`)

~button /js/controlflow

NEXT: Control Flow

~