You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/11-async/02-promise-basics/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ We can see two things by running the code above:
58
58
1. The executor is called automatically and immediately (by the `new Promise`).
59
59
2. The executor receives two arguments: `resolve` and `reject` — these functions are pre-defined by the JavaScript engine. So we don't need to create them. Instead, we should write the executor to call them when ready.
60
60
61
-
After one second of "processing" the executor calls `resolve("done")` to produce the result:
61
+
After one second of "processing" the executor calls `resolve("done!")` to produce the result:
0 commit comments