Frontend
Interviews
.dev
Problems
608. Optional Chaining Short-Circuit
Easy
•
...
Predict the result.
const
user
=
null
console
.
log
(
user
?.
profile
.
name
)
What does console.log output?
null
undefined
TypeError
{}
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer