let opts = { title: "Menu", width: 100, height: 200};
// ⭐ object destructuring
let {title, width, noSuchThing} = opts; // noSuchThing = undefined❗
// ⭐ rename variables
let {title: t, width: w} = opts; // t = "Menu", w = 100
// ⭐ default values (could be function values❗)
let {width: w2 = 100, title: t2} = opts; // t2 = "Menu", w2 = 100
// ⭐ the "rest" object
let {title: t3, ...rest} = opts; // rest = {width: 100, height: 200}