Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Optional Chaining

via egghead.io

Overview

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.

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

Reviews

4.1 rating at egghead.io based on 21 ratings

Start your review of Optional Chaining

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.