FrontendInterviews.dev

632. Optional Chaining Method Call

Easy•

Predict the output.

const obj = null
console.log(obj?.getName?.())

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem