SyntaxFix
Write A Post
Hire A Developer
Questions
const person = { name: 'Prince', age: 22, id: 1 };_x000D_ _x000D_ let {name, age, id} = person;_x000D_ _x000D_ console.log(name);_x000D_ console.log(age);_x000D_ console.log(id);
* Your variable name and object index need be same