2016-03-26 00:47:20 +01:00
|
|
|
# types
|
|
|
|
|
2016-06-14 23:20:45 +02:00
|
|
|
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)
|
2016-06-15 03:37:55 +02:00
|
|
|
* **[Boolean](/blocks/logic/boolean)**: true or false
|
2016-06-15 03:44:51 +02:00
|
|
|
* **[Image](/reference/images/image)**: a collection of [micro:bit LED states](/device/screen) (on/off)
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2016-06-14 23:20:45 +02:00
|
|
|
TypeScript allows you to create user-defined classes of data.
|