Merge pull request #771 from totize/patch-3

Update task.md
This commit is contained in:
Ilya Kantor 2019-02-01 22:32:47 +03:00 committed by GitHub
commit c99d828ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,10 @@
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);
promise.then(f1).catch(f2);
```
Versus;
```js
promise.then(f1).catch(f2);
promise.then(f1, f2);
```