Optional Chaining in JavaScript | Lets Clean up your code

preview_player
Показать описание
In this video I teach you about optional chaining in JavaScript and how it keeps your code clean and readable especially when you want to access a certain property that is nested deeply within its parent property.

0:00 - without optional chaining
3:13 - Optional chaining
5:56 - optional chaining for functions
7:50 - optional chaining for arrays
Рекомендации по теме