Explaining Nullish Coalescing (??)

Опубликовано: 11 Март 2026
на канале: Nicos Tsourektsidis
115
7

You've seen the ?? operator in a TypeScript project, but what it actually does and why people are using it? Let me show you some practical examples to understand what problem is trying to solve, and how to use it in your applications. I promise, after watching this episode everything will make sense and it will actually stick with you.

Contents
00:00 Intro
02:06 False negatives
09:48 Bad UX
12:46 Nullish Coalescing
15:29 Outro

Links
Epic 🤩 TypeScript Cheatsheet:
https://tltr-typescript.com
The playlist with all the videos in the series:
   • TLTR; TypeScript  
Read the article with the coding examples:
https://nicotsou.com/tltr-typescript-...

This video belongs to my series Too Long To Read TypeScript. Every episode covers in detail a core concept of the language.

❤️ How to support this channel?
Like this video
Subscribe to the channel
Share this video with your friends on social media (only if it helped you)
Check out my course