p Чтобы увидеть результат - смотрите консоль CodePen.
p
  | Специально для Webstacker:
  br
  a(href="https://webstacker.net/front-end/javascript/optsionalnye-operatory/", target="_blank") https://webstacker.net/front-end/javascript/optsionalnye-operatory/
View Compiled
p {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
}
View Compiled
var object = {
  username: 'nickdeny',
  address: {
    zip: '00000',
  }
};

var zip = object?.address?.zip;
var avatar = object?.avatar?.medium;

console.log('Zip is: ', zip);
console.log('Avatar URL is: ', avatar);
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.