ES6 Destructuring Explained in 5 Minutes

preview_player
Показать описание
Destructuring is a great new feature in ES6. Learn all about it in this video!
Рекомендации по теме
Комментарии
Автор

Now my GOT knowledge is also revised. thanks :)

ankitgirdhar
Автор

just found your channel, great videos. thanks for the uploads. youd probably be an amazing udemy instructor btw

aaxk
Автор

can you destruct a type with a different type? say, an object with an array. or a string with an object? or is it strict on object with object, array with array...

ashersilver
Автор

const things = ['red', 'basketball', 'paperclip', 'green', 'computer', 'earth', 'blue', 'dogs'];
const one = things;
const two = ' ';
const three = ' ';

How can I assign the colors 'red', 'green' & 'blue' from things array,
to the constants one, two & three using destructuring?

khansameerahmed