Skip to content

Commit 54717a1

Browse files
authored
Update solution.md
Grammar suggestions
1 parent d5195b5 commit 54717a1

File tree

1 file changed

+2
-2
lines changed
  • 1-js/11-async/03-promise-chaining/01-then-vs-catch

1 file changed

+2
-2
lines changed

1-js/11-async/03-promise-chaining/01-then-vs-catch/solution.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The short answer is: **no, they are not the equal**:
1+
The short answer is: **no, they are not equal**:
22

33
The difference is that if an error happens in `f1`, then it is handled by `.catch` here:
44

@@ -17,4 +17,4 @@ promise
1717

1818
That's because an error is passed down the chain, and in the second code piece there's no chain below `f1`.
1919

20-
In other words, `.then` passes results/errors to the next `.then/catch`. So in the first example, there's a `catch` below, and in the second one -- there isn't, so the error is unhandled.
20+
In other words, `.then` passes results/errors to the next `.then/catch`. So in the first example, there's a `catch` below, and in the second one there isn't, so the error is unhandled.

0 commit comments

Comments
 (0)