CARD 1
Introduction
Login to report note issues for this section.
Destructuring
Destructuring is a syntax that allows you to unpack values from arrays or properties from objects into individual variables in a single, clean statement.
Without destructuring:
codejs
With destructuring:
codejs
Same result — far less code. Destructuring is one of the most used ES6 features in modern JavaScript.