Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 119: Optional Chaining (?.)
Implement `safeCity(user)` returning `user.address.city` via optional chaining, defaulting to `N/A` when missing.
+ 1 hidden test run on Submit.
Optional chaining short-circuits to undefined on a missing link, then ?? supplies the default.
Run your code to see results.