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

12 lines
230 B
Markdown

# 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?
```js
promise.then(f1, f2);
```
Versus;
```js
promise.then(f1).catch(f2);
```