en.javascript.info/6-async/03-promise-chaining/01-then-vs-catch/task.md
totize 88f2c5f59b
Update task.md
To keep that order coherent with the solution's.
2019-01-29 20:35:54 +01:00

235 B

Promise: then versus catch

Are these code fragments equal? In other words, do they behave the same way in any circumstances, for any handler functions?

promise.then(f1).catch(f2);

Versus;

promise.then(f1, f2);