Use Destructuring Assignment to Extract Values from Objects, freeCodeCamp tutorials for ES6

preview_player
Показать описание
In this freeCodeCamp course lesson, we look at using the ES6 destructuring syntax in order to extract values from objects. Using the destructuring syntax allows us to create a variable quickly based on the values assigned to keys in an object. We are able to do this using const followed by the name of the keys we want to extract the values from within the curly braces. We then have an equal signs after the curly braces and following the equal sign is the name of the object that we want to extract the values from.
Рекомендации по теме