Explain it in 60 seconds
Optional chaining and nullish coalescing
Frontend Engineering · JavaScript Core · Beginner
What are optional chaining (?.) and nullish coalescing (??)?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- ?. stops at null/undefined and returns undefined.
- Works for properties, calls, indexes.
- ?? default only for null/undefined.
- Differs from || (keeps 0, "").
- Don't overuse to hide bugs.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.