let [x,y, ...nums] = [0, 1, 2, 3, 4, 5, 6]; console.log(x, y, nums); let {a, b, ...props} = {a:1, b:2, c:3, d:{e:4}} console.log(a, b, props); let dog = {name: 'fido', age: 3}; let {name:n, age} = dog; console.log(n, age);