How to Use Optional Chaining (?.) in JavaScript

preview_player
Показать описание
Learn how use optional chaining in JavaScript. We'll break down how to use the chain operator using a question mark (?.) and how you can use it to safely access data in objects.

What JavaScript fundamentals do you want to learn in the next Jelly Drop? Leave your suggestion in the comments!

Watch more Jelly Drops

🔔 Subscribe for more tech and developer videos

🐦 Get updates straight to your Twitter @colbyfayock

📸 Catch the next stream live on Twitch @colbyfayock

✉️ Or a newsletter right to your inbox!

💝 Sponsor me for more free content like this!

🎥 Want to know what A/V equipment I use?

🧰 More Resources

Optional Chaining - MDN

🎼 Music
Music from Uppbeat (free for Creators!):
License code: RYWUVBUNXJSIRV7M

#colbyfayock #jellydrops #javascript #webdevelopment
Рекомендации по теме
Комментарии
Автор

Cool, I didn’t know it could be used on function calls as well. Thanks for the video

WebDevCody
Автор

Just what I wanted. Thanks for the clear and short video.

asfandiyar
Автор

nice Jelly Drop. I kinda new the Question Mark Operator, but I didn't know how it exactly worked. Now I do.

AnthonyCandaele
Автор

really needed something like this for a long time

mdridoy-efpw
Автор

These tips are awesome I’ve taken courses online that never taught this

philip
Автор

Great video! Nice job explaining optional chaining. Thank you for the video 😉

AlterClass
Автор

Awesome info! Can definitely think of scenarios where I would've needed this instead of making alot of if statements

iPururin
Автор

Awesome! said everything i need to know in a couple of minutes instead of 20!

johnkevin
Автор

This is great but deploying an express server to Heroku using optional chaining in the middleware broke the app for me. Had to revert to just old fashioned chaining to make it work. :(

gbrachetta
join shbcf.ru