Deeply nested API responses are dangerous. One missing key crashes your app. Use Optional Chaining.
// Old Way const city = user && user.address && user.address.city; // The Pro Way (ES2020) const city = user?.address?.city ?? 'Unknown';
Why? It’s cleaner, safer, and allows you to provide a default value (Nullish Coalescing) in a single line.
