Nullish Coalescing Quiz
Multiple Choice Easy
Question
What does `0 ?? 5` evaluate to?
Hint
The ?? operator only checks for null and undefined, not other falsy values.
Explanation
The nullish coalescing operator ?? returns the right side only if the left is null or undefined. Since 0 is neither null nor undefined, 0 ?? 5 returns 0. This differs from 0 || 5 which would return 5 because 0 is falsy.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.