Types
Types in LemonScript represent the type of a value. Here is a chart of all the different types in LemonScript:
Type | Value | Example |
---|---|---|
Number | A integer, or a decimal (float) | 4.5, -12, 208 |
String | A list of ordered characters | "hello", 'lemonscript is cool' |
Boolean | A true or false value | true, false |
Null | A null value (meaning nothing) | null |
Array | An array of elements | [1, 2, 3, 4], ["hello", "world"] |
This terminology and knowledge will be important later on.