File tree 1 file changed +3
-3
lines changed
1-js/11-async/07-microtask-queue
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ Here's the demo:
10
10
``` js run
11
11
let promise = Promise .resolve ();
12
12
13
- promise .then (() => alert (" promise done" ));
13
+ promise .then (() => alert (" promise done! " ));
14
14
15
15
alert (" code finished" ); // this alert shows first
16
16
```
17
17
18
- If you run it, you see ` code finished ` first, and then ` promise done ` .
18
+ If you run it, you see ` code finished ` first, and then ` promise done! ` .
19
19
20
20
That's strange, because the promise is definitely done from the beginning.
21
21
@@ -54,7 +54,7 @@ Now the order is as intended.
54
54
55
55
## Unhandled rejection
56
56
57
- Remember "unhandled rejection" event from the chapter < info:promise-error-handling > ?
57
+ Remember ` unhandledrejection ` event from the chapter < info:promise-error-handling > ?
58
58
59
59
Now we can see exactly how JavaScript finds out that there was an unhandled rejection
60
60
You can’t perform that action at this time.
0 commit comments