question mark dot javascript
const adventurer = {
name: 'Alice',
cat: {
name: 'Dinah'
}
};
const dogName = adventurer.dog?.name;
console.log(dogName); //undefined, doesn't return error
const catName = adventurer.cat?.name;
console.log(catName); //Dinah