Skip to content

Optional Chaining (?.)

const city = user?.address?.city ?? "Unknown";

Tip: Combine with ?? to set defaults.