![JavaScript Optional Chaining in 5 Minutes (No more "cannot read property of undefined"!)](https://i.ytimg.com/vi/K7rHYyf6E0g/hqdefault.jpg)
Save yourself some JavaScript code by using Optional Chaining. Optional Chaining can help you help work with data that might be inside of nested objects. You longer have to check that each object "along the chain" exists. This means no more "cannot read property x of undefined"....YAY!
Sign up for JavaScript Challenges course updates - https://www.jamesqquick.com/newsletter/
Optional Chaining Docs - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
Other Optional Chaining Use Cases - https://javascript.info/optional-chaining
_____________________________________________
Newsletter 馃棡
Interested in exclusive content and discounts? 馃く Sign up for the newsletter!
https://www.jamesqquick.com
_____________________________________________
Connect with me 馃榾
Live streams on Twitch - https://twitch.tv/jamesqquick
Follow me on Twitter - https://www.twitter.com/jamesqquick
Join the 馃挰 Discord Server 馃挰 - https://discord.gg/vM2bagU
_____________________________________________
COURSES 馃捇
Learn how to build Fullstack apps with React and Serverless Functions - https://www.jamesqquick.com/courses/react-and-serverless-fullstack-developmnent
Learn everything you need to know about Visual Studio Code - https://www.udemy.com/learn-visual-studio-code/
Build a Quiz App - https://www.udemy.com/build-a-quiz-app-with-html-css-and-javascript/
0 Comments