Courses
TypeScript for Beginners: Catch Wrong Data Before It Runs
Check Yourself: Compile Without the Mystery
Five scenario questions on tsconfig settings and reading errors. If you miss more than one, go back to the two lessons before moving on.
Course content
Join this Course
Sign in to save your progress.
-
Before You Write Types
-
What TypeScript Adds on Top of JavaScript
-
Install TypeScript and Run Your First .ts File
-
-
-
Types You Cannot Skip
-
Annotating Variables Without Fighting the Compiler
-
Arrays, Objects and Nested Shapes
-
Optional, Readonly and Why any Is a Trap
-
-
-
Functions That State Their Deal
-
Parameter and Return Types
-
Optional and Default Parameters Without Surprises
-
-
-
Shapes You Can Reuse
-
Interfaces vs type Aliases: Pick One and Stick With It
-
Unions, Literals and Narrowing With typeof and in
-
-
-
Compile Without the Mystery
-
tsconfig.json: target, module and strict
-
Reading tsc Errors Without Panicking
-
-
- Final Check: TypeScript for Beginners
1.
You ran tsc --init, and now npx tsc hello.ts prints error TS5112 about tsconfig.json. What is the cleanest way to continue?
2.
With target es2015 the output turns a ?? b into a longer older form, and with target es2022 it stays as ?? . What does target control?
3.
You want tsc to write no JavaScript at all while the project has errors. Which setting does that?
4.
A long error ends with the line Property city is missing in type with name only but required in type Customer. The first line says an object is not assignable to Order. How should you read it?
5.
A function has no return type and returns a number in one case and a string in the other. The error appears on a line that multiplies its result. Where is the real mistake?
About
Five scenario questions on tsconfig settings and reading errors. If you miss more than one, go back to the two lessons before moving on.
- Duration
- 5 min
- Last update
- 10/11/2026
Was this helpful?
0
0
Comments (0)
Sign in to commentNo comments yet.