Course lesson

Access Long Chains of Properties with JavaScript Optional Chaining

Accessing a long chain of properties can be risky since one or more properties could be undefined or null. To be safe, we can use optional chaining when accessing long chain of properties.

Duration
1 min
Access
Free
Transcript
Available

Accessing a long chain of properties can be risky since one or more properties could be undefined or null. To be safe, we can use optional chaining when accessing long chain of properties.