Case File: The Missing Value
Some customers have no phone, no address or are not in the system at all. Strict null checking makes the compiler remember that a value may be missing, and the fix is to handle it, not to promise the compiler it is there. Rewrite three functions with optional chaining and defaults, without any non-null assertions. Real TypeScript, generated for you alone.
Case File: The Missing Value
Some customers have no phone, no address or are not in the system at all. Strict null checking makes the compiler remember that a value may be missing, and the fix is to handle it, not to promise the compiler it is there. Rewrite three functions with optional chaining and defaults, without any non-null assertions. Real TypeScript, generated for you alone.
In this lesson:
- typescript
- strict-null-checks
- optional-chaining
- nullish-coalescing
- undefined
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans