JavaScript | Asynchronous JavaScript | Question 10

Last Updated :
Discuss
Comments

What is the purpose of Promise.finally()?

Executes only when a promise is fulfilled

Executes only when a promise is rejected

Cancels unresolved promises

Executes after a promise is settled, regardless of its state

Share your thoughts in the comments