Destructuring in JavaScript
When you first start learning JavaScript, you often write code like this:
const user = {
name: "Rahul",
age: 22,
city: "Indore"
};
const name = user.name;
const age = user.age;
const city = u
saurabh-ravte.hashnode.dev2 min read