// 数组结构
// let ary = [1, 2, 3];
// let [a, b, c] = ary;
// console.log(a); //1
// console.log(b); //2
// console.log(c); //3
let ary = [1, 2, 3];
let [a, b, c, d, e] = ary;
console.log(a); //1
console.log(b); //2
console.log(c); //3
console.log(d); // undefined
console.log(e); // undefined
![](https://img2020.cnblogs.com/blog/1374979/202006/1374979-20200609143111914-1757500973.png)
// 第二种结构方式
let person = {
name: 'lisi',
age: 30,
sex: '男'
};
let {
name: MyName
} = person;
console.log(MyName); // lisi