Object Destructuring
const person = {
name: "Vignesh",
email: "[email protected]"
}using dot notation
const name = person.name;
const email = person.email;using bracket notation
const name = person["name"];
const email = person["email"];const { name, email } = person;
// name -> person.name
// email -> person.emailVideo Link
Last updated