Just a couple questions, but does the names of the variables to hold the properties of the object being destructed have to be consistent with the property names?
Also, does the order in which the variables are declared in the syntax matter when destructing the object?
An example:
const storeLocation = {
addressNumber: 9010
streetName: JinxFade
streetAbbrev: Dr.
city: Mabeline
state: JS
zipcode: 12201
}
const { addressNumber, streetName } = storeLocation; //<-This is fine.
const { zipcode, cityName } = storeLocation; /*<-Will this work?
Even if there is no property with the name "cityName"?
Also, since zipcode comes in third in overall order, does it receive the streetAbbrev value instead?
*/