en.javascript.info/8-async/03-promise-chaining/01-then-vs-catch/task.md
Ilya Kantor f57be1bbb3 work
2017-04-18 00:26:35 +02:00

230 B

Promise then vs 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, f2);

Versus;

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