TypeScript interview practice: fix the bug.
Real TypeScript questions interviewers ask, turned into small challenges. Edit the code, watch the real compiler react as you type, and pass the checks. Free, no sign-up, works on your phone.
Loading
What TypeScript sees
Loading the TypeScript checker...
Inferred types
Output
Checks
- Press Run checks when you're ready.
Bug squashed.
The guide breaks this question down in full, with what the interviewer is checking, the common wrong answer and the follow-ups, plus 20 more questions.
The lab runs the real TypeScript compiler in your browser. It uses TypeScript 6, the last version that can run in a browser: TypeScript 7 is native code, and type-checks the same way. Prefer React? Try the free React Lab.