pxt-calliope/docs/reference/types.md

14 lines
522 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# types
A *type* refers to a class of data and the operations permitted on that class of data.
The following built-in types are supported for the BBC micro:bit:
2016-03-26 00:47:20 +01:00
2016-04-13 17:27:45 +02:00
* **[String](/reference/types/string)**: a sequence of characters
* **[Number](/reference/types/number)**: an integer number (32-bit signed)
* **[Boolean](/reference/types/boolean)**: true or false
* **[Image](/blocks/image)**: a collection of [micro:bit LED states](/device/screen) (on/off)
2016-03-26 00:47:20 +01:00
TypeScript allows you to create user-defined classes of data.
2016-03-26 00:47:20 +01:00