Question 19/22
intermediate
Select one answer

What is optional chaining (?.) in JavaScript?

A way to make function parameters optional
Safe property access that returns undefined instead of throwing error if property doesn't exist
A method to chain multiple promises
A way to create optional variables

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.