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 807414b

Browse files
authored
Merge pull request #1164 from Violet-Bora-Lee/patch-13
Update article.md
2 parents 369b0ba + 2695e4f commit 807414b

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 によって変換されたページ (->オリジナル) /