
Destructuring Objects
Just like in destructuring arrays, we can also destructure objects. The syntax is slightly different using curly braces. The output would be 1 and ‘gorilla’. Notice the parentheses. We did not have those in the destructuring arrays lesson. The reason we need to put it in parentheses is due to