Destructuring Assignments

Destructuring assignmentsopen in new window are JavaScript expressions that unpack values from arrays and object into distinct variables. The syntax is slightly different when destructuring objects verses arrays, so following pages will demonstrate how use the destructure objects and arrays.