What is destructuring in JavaScript?

Destructuring unpacks values from arrays or properties from objects.

const person = { name: "Alice", age: 25 };
const { name, age } = person;