
TypeScript Mastery: Tricky MCQ Practice Tests
About this course
Test How Well You Really Know TypeScriptTypeScript compiles your code without complaint, and then a value that was typed as number turns out to be undefined. Why does a const object still widen its strings? Why does Omit flatten a union?
Why does a destructured discriminant still narrow, but a callback loses the narrowing? These practice tests check how deeply you understand the type checker, one short snippet at a time. What this practice test course offers:200 original multiple-choice questions in 4 practice tests of 50, grouped by topic Short snippets you must reason about: the inferred type, the compiler error, or the printed outputAn explanation for every answer option, plus an overall explanation of the rule behind itEvery snippet type-checked with TypeScript 7 (the new native compiler) and run on Node, so every answer matches what the real tools do Current TypeScript: the new 6.
0 and 7. 0 defaults and removed options, satisfies, const type parameters, NoInfer, inferred type predicates, using declarations and standard decorators Topics covered:Inference and widening, as const, satisfies, any, unknown and never Narrowing: typeof, in, instanceof, discriminated unions, type predicates and assertion functionsStructural typing, excess property checks, optional properties, readonly and index signaturesOverloads, this, function compatibility, classes, private fields and initialisation orderGenerics, constraints, variance, conditional types, infer, mapped and template literal typesUtility types, enums at runtime, type erasure, modules, tsconfig flags and Node type stripping Who should take this course? JavaScript and TypeScript developers preparing for interviews and coding assessmentsFrontend and backend engineers who use TypeScript daily and want to find the gaps before a bug doesDevelopers upgrading projects to TypeScript 6 or 7 who want to know what changedIf you have never used TypeScript, start with a TypeScript fundamentals course and come back here to test yourself.
How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Retake a test a few days later to check that the rules have stuck. This course is independent and is not affiliated with or endorsed by Microsoft or the TypeScript project.
Skills you'll gain
Available Coupons
Course Information
Level: All Levels
Suitable for learners at this level
Duration: Self-paced
Total course content
Instructor: Udemy Instructor
Expert course creator
This course includes:
- 📹Video lectures
- đź“„Downloadable resources
- 📱Mobile & desktop access
- 🎓Certificate of completion
- ♾️Lifetime access
You May Also Like
Explore more courses similar to this one


