pxt-calliope/docs/js/operators.md
2016-11-01 17:44:37 -07:00

1.1 KiB

Operators

The following JavaScript operators are supported for the @boardname@.

~hint

Note that for the @boardname@ 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

~