JavaScript por Victor Talmacinschi • June 10, 2022
const user = {
id: 1,
name: 'John',
address: {
street: 'Main St',
city: 'Boston',
state: 'MA'
}
};
const { id, name, address: { street, city, state } } = user;
console.log(`${id} - ${name} - ${street}, ${city}, ${state}`);
0
28.387