Skip to content

Commit 046385d

Browse files
authored
Merge pull request #17 from yaDaryStil/patch-1
Update article about Promises chaning
2 parents 3f338a6 + a5d4d5f commit 046385d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

6-async/03-promise-chaining/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ The idea is that the result is passed through the chain of `.then` handlers.
4141

4242
Here the flow is:
4343
1. The initial promise resolves in 1 second `(*)`,
44-
2. Then the `.this` handler is called `(**)`.
45-
3. The value that it returns is passed to the next `.this` handler `(***)`
44+
2. Then the `.then` handler is called `(**)`.
45+
3. The value that it returns is passed to the next `.then` handler `(***)`
4646
4. ...and so on.
4747

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

0 commit comments

Comments
 (0)