pxt-calliope/docs/js/operators.md
2016-07-25 17:00:51 -04:00

1.1 KiB

Operators

The following JavaScript operators are supported for the micro:bit.

~hint

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/statements

NEXT: Statements

~