FrontendInterviews.dev

608. Optional Chaining Short-Circuit

Easy•

Predict the result.

const user = null
console.log(user?.profile.name)

What does console.log output?

Select an option and submit your answer.
Next Problem