const myObject = {};
const myVar = myObject.prop1?.prop2?.prop3?.prop4();
console.log('myVar', myVar); // myVar undefined
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.