Answer
Array destructuring pulls values out by position into named variables using square-bracket syntax on the left side of an assignment.
const [first, second] = [10, 20];
console.log(first, second); // 10 20Real-world example Unpacking a [value, setValue] pair returned by React's useState hook.