What is the difference between then and finally in a promise?
First difference: Sometimes you don’t want to catch errors at the place they arise, but in the code that uses this function, so you don’t catch them. In that case you can’t substitute then() and finally(). Sometimes you have to clean something up whether there was an error or not (nulling references, clearing timeouts … … Read more