Optional Chaining in JavaScript

preview_player
Показать описание
Optional Chaining is a pretty new feature to JavaScript that makes it very easy to access properties of objects that may or may not exist.

#ES2020 #OptionalChaining #JavaScript

👀 Follow Me:

---

🎵 Music by Alexander Aultman. Show him some love!
Рекомендации по теме
Комментарии
Автор

thanks for the shot and on point explanation

umoooo
Автор

This is good stuff. It would be so beneficial to see this in real world examples.

soltiscd
Автор

cool video! any tips for finding your first dev job?

yxgen
Автор

Bro this is my favorite addition to JS. Also, you might as well use nullish coallescing rather than logical OR. Server.data?.todos?.[0] ?? 'There are no todos for this user'

nlingrel