Operators

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

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

Comparison and conditional