Given the JS Object:
const user = { name: "Ira", email: "[email protected]", favColor: "blue" };
const name = user.name;
const email = user.email;
const favColor = user.favColor;
const {name, email, favColor} = user;
Given the Array:
const groceries = ["Eggs", "Milk", "Bread", "Oranges", "Strawberries"];
const grocery1 = groceries[0];
const grocery2 = groceries[1];
const [grocery1, grocery2] = groceries;