Skip to content

Commit

Permalink
Merge pull request #1 from zaibugemi/zaibugemi-patch-1
Browse files Browse the repository at this point in the history
Fixed a grammatical error
  • Loading branch information
zaibugemi committed Oct 24, 2021
2 parents eda333d + 4c2658d commit 6250c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1-js/11-async/03-promise-chaining/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The idea is that the result is passed through the chain of `.then` handlers.
Here the flow is:
1. The initial promise resolves in 1 second `(*)`,
2. Then the `.then` handler is called `(**)`, which in turn creates a new promise (resolved with `2` value).
3. The next `then` `(***)` gets the result of the previous one, processes it (doubles) and passes the next handler.
3. The next `then` `(***)` gets the result of the previous one, processes it (doubles) and passes it to the next handler.
4. ...and so on.

As the result is passed along the chain of handlers, we can see a sequence of `alert` calls: `1` -> `2` -> `4`.
Expand Down

0 comments on commit 6250c91

Please sign in to comment.