01 / 05
You cannot follow past something that is not there
Taking out an entry that is not there only gave back undefined; the program did not stop.
But try to follow further from that undefined and it stops right there. Write user.address.city for a user with no address and this is what you get.
const user = { name: "Yui" };console.log(user.address.city);Result
TypeError: Cannot read properties of undefined (reading 'city')