pxt-calliope/docs/reference/types.md

12 lines
527 B
Markdown

# 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 @boardname@:
* **[String](/reference/types/string)**: a sequence of characters
* **[Number](/reference/types/number)**: an integer number (32-bit signed)
* **[Boolean](/blocks/logic/boolean)**: true or false
* **[Image](/reference/images/image)**: a collection of [@boardname@ LED states](/device/screen) (on/off)
TypeScript allows you to create user-defined classes of data.