pxt-calliope/docs/reference/types.md

12 lines
527 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 @boardname@:
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-11-02 01:44:37 +01:00
* **[Image](/reference/images/image)**: a collection of [@boardname@ LED states](/device/screen) (on/off)
2016-03-26 00:47:20 +01:00
TypeScript allows you to create user-defined classes of data.