TypeScript in Practice: Typed APIs and Safe Code: free practice test
27 questions drawn from 9 lessons. Each answer comes with an explanation. Learn TypeScript by fixing real problems in a courier company's tracking API. Describe data exactly with interfaces and unions, keep types through generics, treat outside data as unknown and check it, handle missing values without silencing the compiler, and build typed API handlers that validate every request, retry safely and move parcels only along allowed transitions. Every lab runs the real TypeScript compiler in strict mode in your browser, and every case is different for every learner.
27 questions from TypeScript in Practice: Typed APIs and Safe Code
Pick an answer and you see straight away whether it is right, and why. Nothing is saved and you do not need an account.
Ready for more than questions?
The full course has hands-on labs and story-based case files, plus a challenge exam and a verifiable certificate on a paid plan. See the TypeScript in Practice: Typed APIs and Safe Code course.