Frontend
Interviews
.dev
Problems
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?
undefined
null
TypeError
"b"
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer