Skip to content

Commit c99d828

Browse files
authored
Merge pull request javascript-tutorial#771 from totize/patch-3
Update task.md
2 parents 1c4fb87 + 88f2c5f commit c99d828

File tree

1 file changed

+2
-2
lines changed
  • 6-async/03-promise-chaining/01-then-vs-catch

1 file changed

+2
-2
lines changed

6-async/03-promise-chaining/01-then-vs-catch/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Are these code fragments equal? In other words, do they behave the same way in any circumstances, for any handler functions?
44

55
```js
6-
promise.then(f1, f2);
6+
promise.then(f1).catch(f2);
77
```
88

99
Versus;
1010
```js
11-
promise.then(f1).catch(f2);
11+
promise.then(f1, f2);
1212
```

0 commit comments

Comments
 (0)