JavaScript · Middle · Question 67 of 75

What does options.onSuccess?.(data) do?

Explanation

Optional call syntax is handy for optional callbacks. It still throws if onSuccess exists but isn't a function.

Further reading

Problem with a question

JavaScript · Middle · question 67

Test yourself

Take the JavaScript · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz