Skip to content

Commit ac74268

Browse files
authored
Update article.md
Just a little typos
1 parent 440f408 commit ac74268

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/11-async/07-microtask-queue/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For instance, take a look:
9090
```js run
9191
setTimeout(() => alert("timeout"), 0);
9292

93-
Promise.resolved()
93+
Promise.resolve()
9494
.then(() => alert("promise"));
9595

9696
alert("code");
@@ -109,7 +109,7 @@ Or, vise-versa, a microtask schedules a macrotask (e.g. `setTimeout`).
109109
For instance, here `.then` schedules a `setTimeout`:
110110

111111
```js run
112-
Promise.resolved()
112+
Promise.resolve()
113113
.then(() => {
114114
setTimeout(() => alert("timeout"), 0);
115115
})

0 commit comments

Comments
 (0)