Question 4 of 5Pro Only
What is destructuring in JavaScript, and how do you use it with objects and arrays?
Sample answer preview
Destructuring is a JavaScript syntax that allows you to unpack values from arrays or properties from objects into distinct variables. It makes code cleaner and more readable. For objects, you extract properties by their names.
destructuringES6spreadrestdefault values