commit
c99d828ff7
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
Are these code fragments equal? In other words, do they behave the same way in any circumstances, for any handler functions?
|
||||||
|
|
||||||
```js
|
```js
|
||||||
promise.then(f1, f2);
|
promise.then(f1).catch(f2);
|
||||||
```
|
```
|
||||||
|
|
||||||
Versus;
|
Versus;
|
||||||
```js
|
```js
|
||||||
promise.then(f1).catch(f2);
|
promise.then(f1, f2);
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue