Why doesn’t this JavaScript destructuring assignment work?
Destructuring Destructuring is a convenient way of extracting multiple values from data stored in objects and Arrays. The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables. Ex:- var a = [10, 20, 30]; [x, y, z] = a;console.log(x) // 10console.log(y) … Read more