📅  最后修改于: 2022-03-11 15:02:34.580000             🧑  作者: Mango
let person = {
name: 'David',
age: 15,
job: 'Programmer'
}
const { name, age } = person; // Takes the property/method from the object
console.log(name); // Prints 'David'
console.log(age); // Prints '15'