File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/11-async/03-promise-chaining Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ The idea is that the result is passed through the chain of `.then` handlers.
3636
3737Here the flow is:
38381 . The initial promise resolves in 1 second ` (*) ` ,
39- 2 . Then the ` .then ` handler is called ` (**) ` wich in turn creates a new promise.
40- 3 . The value that it returns is passed to the next ` .then ` handler ` (***) `
39+ 2 . Then the ` .then ` handler is called ` (**) ` , which in turn creates a new promise (resolved with ` 2 ` value) .
40+ 3 . The next ` then ` ` (***) ` gets the result of the previous one, processes it (doubles) and passes the next handler.
41414 . ...and so on.
4242
4343As the result is passed along the chain of handlers, we can see a sequence of ` alert ` calls: ` 1 ` -> ` 2 ` -> ` 4 ` .
You can’t perform that action at this time.
0 commit comments