20questions
BeginnerJavaScript
20 subjects
5 easy10 medium5 hard
The same JavaScript file runs in Chrome but crashes in Node with "document is not defined". What is the language, and what does the runtime add?
Start practising3 easy4 medium1 hard
// 8 of 8 questions · 8 subjects
Why should a new project turn on `strict`, and what does it actually change?
easytsconfigStrict mode
When would you type a value as `unknown` rather than `any`?
easyany vs unknownUnions
When are function overloads the right tool, and when is a union parameter better?
mediumOverloadsFunction types
How do discriminated unions plus a `never` check catch bugs when a new case is added?
mediumDiscriminated unionsExhaustiveness
Interface or type alias: how do you decide, and what can only one of them do?
easyInterfacesType aliases
mediumGenericsConstraints
How would you derive an update DTO from an entity type instead of writing it by hand?
hardMapped typesUtility types
What is the difference between TypeScript's `private` and JavaScript's `#private` fields?
mediumAccess modifiersClasses
20questions
Beginner20 subjects
5 easy10 medium5 hard
The same JavaScript file runs in Chrome but crashes in Node with "document is not defined". What is the language, and what does the runtime add?
Start practising22questions
Beginner22 subjects
8 easy11 medium3 hard
What makes a coding agent different from autocomplete or a chat window, and what does that change about how you review its work?
Start practising35questions
Beginner35 subjects
9 easy18 medium8 hard
Walk through what happens between typing a URL and seeing the first pixels, and where front-end code can speed it up.
Start practising