Optional Chaining and Nullish Coalescing
Two ES2020 operators for safely accessing deeply nested properties and providing fallback values only for null/undefined.
Optional chaining (?.) and nullish coalescing (??) were added in ES2020 specifically to solve two extremely common pain points around null/undefined handling that previously required verbose manual checks. Because these operators show up in nearly every modern codebase, interviewers expect quick, confident answers about exactly what they do and don't cover.
Optional chaining is like carefully feeling your way down a dark staircase, stopping the instant a step is missing instead of tumbling all the way down (a TypeError). Nullish coalescing is a backup generator that only kicks in when the power is truly out (null/undefined), not just when the lights are merely dim (other falsy values).