Update solution.md
Grammar suggestions
This commit is contained in:
parent
d5195b5d59
commit
54717a168b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
The short answer is: **no, they are not the equal**:
|
The short answer is: **no, they are not equal**:
|
||||||
|
|
||||||
The difference is that if an error happens in `f1`, then it is handled by `.catch` here:
|
The difference is that if an error happens in `f1`, then it is handled by `.catch` here:
|
||||||
|
|
||||||
|
@ -17,4 +17,4 @@ promise
|
||||||
|
|
||||||
That's because an error is passed down the chain, and in the second code piece there's no chain below `f1`.
|
That's because an error is passed down the chain, and in the second code piece there's no chain below `f1`.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue