Javascript Destructuring assignment

preview_player
Показать описание


The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.

You might have seen this syntax in some code and you wonder what does it do.

1. Classically here is what we used to, we have an object called movie
2. you can do the same thing by using the unpack syntax
3. you can also unpack multiple ones at once..
4. arrays can be unpacked..

[a, b, c] = [1,2,3]

Stay Awesome!
Hussein
Рекомендации по теме
Комментарии
Автор

O my word that is awesome!! Thanks for sharing. I honestly love your channel, damn good quality and excellently explained.

jacobusstrydom