© 2026 Hashnode
What is an Optional chaining Operator? The Optional Chaining Operator returns undefined if an object is undefined or null (instead of throwing an error). The optional chaining operator (?.) enables you to read the value of a property located deep w...
