Merge pull request #857 from ofcRS/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2019-03-20 16:02:16 +03:00 committed by GitHub
commit 5791f59224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ For instance, take a look:
```js run
setTimeout(() => alert("timeout"), 0);
Promise.resolved()
Promise.resolve()
.then(() => alert("promise"));
alert("code");
@ -111,7 +111,7 @@ Or, vise-versa, a microtask schedules a macrotask (e.g. `setTimeout`).
For instance, here `.then` schedules a `setTimeout`:
```js run
Promise.resolved()
Promise.resolve()
.then(() => {
setTimeout(() => alert("timeout"), 0);
})