Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2695e4f

Browse files
Update article.md
1 parent 369b0ba commit 2695e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1-js/11-async/03-promise-chaining/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ new Promise(function(resolve, reject) {
138138
});
139139
```
140140

141-
Here the first `.then` shows `1` returns `new Promise(...)` in the line `(*)`. After one second it resolves, and the result (the argument of `resolve`, here it's `result*2`) is passed on to handler of the second `.then` in the line `(**)`. It shows `2` and does the same thing.
141+
Here the first `.then` shows `1` and returns `new Promise(...)` in the line `(*)`. After one second it resolves, and the result (the argument of `resolve`, here it's `result*2`) is passed on to handler of the second `.then` in the line `(**)`. It shows `2` and does the same thing.
142142

143143
So the output is again 1 -> 2 -> 4, but now with 1 second delay between `alert` calls.
144144

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /