Zugriff auf verschachtelte Objekte in JavaScript
const user = {
id: 101,
email: '[email protected]',
personalInfo: {
name: 'Jack',
address: {
line1: 'westwish st',
line2: 'washmasher',
city: 'wallas',
state: 'WX'
}
}
}
const name = user.personalInfo.name;
const userCity = user.personalInfo.address.city;
Jolly Jellyfish