renames
This commit is contained in:
parent
787d58a83f
commit
455d300d8d
280 changed files with 2 additions and 2 deletions
12
6-async/03-promise-chaining/01-then-vs-catch/task.md
Normal file
12
6-async/03-promise-chaining/01-then-vs-catch/task.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 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?
|
||||
|
||||
```js
|
||||
promise.then(f1, f2);
|
||||
```
|
||||
|
||||
Versus;
|
||||
```js
|
||||
promise.then(f1).catch(f2);
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue