Array Destructuring in Javascript

preview_player
Показать описание
Through the use of 'array destructuring' we are able to quickly assign values to variables given a sequence of elements in an array.

It also allows us to quickly create multiple new variables in a single line, rather than doing it across multiple, leaving code looking a lot neater.

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Yeah, I was not aware at the time of recording that it's actually called 'destructuring' instead of 'destructing' - let's be honest you probably thought the same when you first read it, or you're finding out right now.

dcode-software
Автор

Love your tutorials. No waffle, nice simple explanation and examples. 👊

wanderdutts
Автор

what a nice videio, one guy gave me 20 page document explaining it.

ashokbishwas
Автор

Thanks for this informative video, and the color scheme of your editor is nice!

Admiral_Ducky
Автор

Thanks for the video. what if we wanted to get 4 and 5?

yasharsh