FrontendInterviews.dev

647. Optional Chaining Grouping Breaks the Chain

Easy•

Predict the output.

const obj = null
console.log((obj?.a).b)

What is printed in the console?

Select an option and submit your answer.
Next Problem