
Optional chaining ?. safely accesses nested properties without throwing if something is null: user?.address?.city. Nullish coalescing ?? returns the right side only when the left is null or undefined: name ?? 'Anonymous'. Together these two operators eliminate most defensive null-checking boilerplate in modern JavaScript.
Reference:
TaskLoco™ — The Sticky Note GOAT