TypeScript Developer

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.

55 min

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

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans