Guided Notes
Simple & Special Types
string, number, boolean, bigint, type inference, explicit vs implicit typing, and the special types any, unknown, never, void, null and undefined.
The primitive types
Slide 1 / 4| Type | Examples |
|---|---|
| string | "Dar es Salaam", 'hi', template strings |
| number | 42, 3.14, -7, NaN (integers and decimals share one type) |
| boolean | true, false |
| bigint | 9007199254740993n (very large integers) |
| symbol | Symbol("id") (unique keys) |
| null / undefined | Absence of a value |
