Destructuring & Spread Operator
Which of the following correctly uses destructuring to extract values from a nested array?
The correct way to use destructuring to extract values from a nested array is `const [a, [b, c]] = [1, [2, 3]];`. This syntax destructures the first element of the outer array into the variable `a` (which gets the value 1), and then destructures the second element (which is itself an array [2, 3]) using the nested pattern `[b, c]`. After this destructuring, `a = 1`, `b = 2`, and `c = 3`. Nested destructuring is useful when working with complex data structures like multi-dimensional arrays or JSON responses from APIs with nested arrays. The pattern on the left side of the assignment must match the structure of the data on the right side. You can nest destructuring patterns as deeply as needed to match your data structure, though extremely deep nesting can make code less readable. The other options contain syntax errors or don't match the structure of the given array.