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

Appearance settings

Commit 99bd54e

Browse filesBrowse files
authored
Trivial typo-fix
1 parent 9365275 commit 99bd54e
Copy full SHA for 99bd54e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: 6-async/03-promise-chaining/article.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ new Promise(function(resolve, reject) {
140140

141141
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.
142142

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

145145
Returning promises allows us to build chains of asynchronous actions.
146146

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.