JavaScript (and by extension TypeScript) has two bottom types with no values: null
and undefined
. They are intended to mean different things:
- If something hasn't been initialized, it's
undefined
. - If something is currently unavailable, it's
null
.
