Answers for "Destructuring Nested Objects"

-1

Destructuring Nested Objects

const user = {  id: 339,  name: 'Fred',  age: 42};
const {name} = user;
console.log(name); //Expected output: fred
Posted by: Guest on August-26-2021

Code answers related to "Destructuring Nested Objects"

Code answers related to "Javascript"

Browse Popular Code Answers by Language