A quick map of primitive types
Types act like behavior contracts for every value.
In daily practice you will mostly work with `string`, `number`, `boolean`, `null` and `undefined`. JavaScript also includes `bigint` and `symbol` for more specific scenarios.
Identifying both the type and the purpose of each value helps you choose the right operations and avoid accidental conversions.
- `string`: text such as `'hello'`.
- `number`: integers and decimals such as `10` or `3.14`.
- `boolean`: true or false.
- `null`: an intentional absence of value.
- `undefined`: a value that has not been assigned yet.