destructuring nested objects

Solutions on MaxInterview for destructuring nested objects by the best coders in the world

showing results for - "destructuring nested objects"
Braelyn
23 Jun 2018
1const user = {  id: 339,  name: 'Fred',  age: 42};
2const {name} = user;
3console.log(name); //Expected output: fred
similar questions
queries leading to this page
destructuring nested objects