14 / 17

How does `Promise.finally()` work?

The .finally() method is used to attach a callback that will be executed regardless of whether the Promise is fulfilled or rejected.

javascript
Share

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.