any, unknown, never and void
Comes up in: Recruiter screen
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
anydisables checking (and spreads)unknownmust be narrowedneveras the empty type (exhaustiveness, functions that throw)voidvsundefinedin callbacks- catch variables are
unknownunder strict
Words you will know
What you will practise
- replace 6
anys safely
Interview questions this answers
- What is the difference between
any,unknownandnever?