JavaScript · Middle · Question 23 of 75

What does a promise's .finally() do?

Explanation

finally receives no arguments and passes the value or error through unchanged - handy for hiding a loading indicator. Exception: if the callback itself throws or returns a rejected promise, the chain rejects.

Further reading

Problem with a question

JavaScript · Middle · question 23

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