Optional chaining ?. in javascript is a new feature introduced in ES2020. Optional chaining changes the way properties are accessed from deeply nested objects. It fixes the problem of having to do multiple null checks when accessing long chain of object properties in javascript.
Overview
Syllabus
- Enable JavaScript Experimental Features in Chrome
- Enable optional chaining in Node app by using Babel
- Access Long Chains of Properties with JavaScript Optional Chaining
- Provide Default Values with Optional Chaining and Null Coalescing in JavaScript
Taught by
Shruti Kapoor