A valid zero
Take your time, follow the code and check your understanding.
The codeConditions
const count = 0;
console.log(count ?? 10);Your answer3 min · no timer
Show solution and explanation
Nullish coalescing uses the fallback only for null or undefined. Zero is retained.
0