Destructuring assignment unpacks values from arrays by position and properties from objects by name into distinct variables, reducing boilerplate and improving readability.
Array destructuring assigns elements to variables based on their index position. You can skip elements with empty commas and provide default values for missing indices.
Object destructuring extracts properties by matching property names. Variables can be renamed with the colon syntax and given defaults when a property is undefined.
Destructuring works in function parameters, letting you extract needed values directly from arguments without intermediate variables. This is especially common for configuration objects and React props.
Interview framing: define Destructuring in one sentence, then explain one concrete runtime behavior and one common pitfall with a short code example.