TypeScript Basics
TypeScript learning path
Master typescript basics through 10 carefully ordered interview questions. Each lesson includes a detailed explanation, practical example, common mistakes, and an interview-ready summary.
10 questions4 easy · 3 medium · 3 hard difficulty mix≈ 50 min total study time
Start this learning path Quick knowledge check
Test your TypeScript Basics knowledge
Match five interview questions to their best answers. Your result stays on this device.
Table of contents
Work through the questions in order for a guided path, or jump directly to the concept you want to review.
01What is TypeScript and why use it?easy · junior level · 4 min read02What is structural typing?hard · senior level · 4 min read03What is the difference between `any`, `unknown`, and `never`?medium · mid level · 5 min read04What is type inference?easy · junior level · 4 min read05What is a union type?hard · senior level · 5 min read06What is an intersection type?medium · mid level · 4 min read07What is type narrowing?easy · junior level · 4 min read08What is a discriminated union?hard · senior level · 4 min read09What is a type assertion?medium · mid level · 4 min read10What does `strict` mode enable?easy · junior level · 4 min read