Concepts·4 / 9
Data types: numbers, strings, booleans
~4 min read
Most languages distinguish between a few basic kinds of value:
| Type | Examples |
|---|---|
| Number | 42, 3.14, -7 |
| String | 'hello', "music" |
| Boolean | true, false |
| Array / List | [1, 2, 3] |
| Object / Dict | {name: 'Sam', age: 30} |