Destructuring Assignments: Arrays
Destructuring assignment is a cool feature in JavaScript that makes it easier to take values from arrays (or properties from objects) and set them into new variables. Imagine you have a box filled with balls, and you want to take…