Destructuring assignment is used to unpack value from an array, or properties from the object, into distinct variables
Let [x,y] = [7,20]
x will be assigned 7 and y, 20
[10,x, ...rest] =
[10, 80, 7, 11, 21, 88] x will be 80 rest will be [7,11,21,88]
...