⬅️ FEM TypeScript Fundamentals #✅
Nullish values
null
null
means: there is a value, and that value is nothing.
undefined
undefined
means the value isn’t available (yet?)
void
void
should exclusively be used to describe that a function’s return value should be ignored
Non-null assertion operator
- aka optional chaining, the non-null assertion operator (
!
) is used to cast away the possibility that a value might benull
orundefined
.
Definite assignment operator
!:
, same as above but used on class fields instead