guest271314 (2019-03-22T19:02:17.000Z)
guest271314 at gmail.com (2019-03-22T19:05:18.230Z)
> shouldn't it have created a variable '0' and '1' ? No. See Assigning to new variable names https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Assigning_to_new_variable_names > A property can be unpacked from an object and assigned to a variable with a different name than the object property.