J Decker (2019-03-22T18:38:07.000Z)
forbes at lindesay.co.uk (2019-04-24T11:22:29.271Z)
On Fri, Mar 22, 2019 at 10:32 AM guest271314 <guest271314 at gmail.com> wrote: > If gather the expected result correctly object destructuring can be used > > const {0: a, 1: b} = {0: a, 1: b, length: 2} > ```js var a = "testa", b="testb"; const {0: c, 1: d} = {0: a, 1: b, length: 2} ``` results in a const 'c' and const 'd' created with the values of a and b. shouldn't it have created a variable '0' and '1' ?