In JavaScript, the last return always wins. The finally block always runs after a try / catch , even if the try or catch return. Promises behave the same as above (aside from returning a promise) However, promise.finally() behaves differently: promise fulfils with 'one' . This is probably because promise reactions are
•2m read time• From jakearchibald.com
Sort: