Fixed a grammatical error

This commit is contained in:
Zuhaib Shah 2021-10-24 13:26:12 +05:00 committed by GitHub
parent eda333d423
commit 4c2658d60d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ The idea is that the result is passed through the chain of `.then` handlers.
Here the flow is: Here the flow is:
1. The initial promise resolves in 1 second `(*)`, 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). 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. 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`. As the result is passed along the chain of handlers, we can see a sequence of `alert` calls: `1` -> `2` -> `4`.