Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `getStreet(user)` returning `user.address.street`, defaulting to `N/A` when the address or street is missing, using nested destructuring.
+ 1 hidden test run on Submit.
Nested destructuring with a default empty object and a default street value safely yields 'N/A' when anything is missing.
Run your code to see results.