Nilai penataan de dari objek ES6 dan JavaScript

let tempObject = {name: 'John', age: 18};
const {name, age} = tempObject;

console.log(name);
//expected output: "John"

console.log(age);
//expected output: 18
Ehmed