1.1 KiB
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