Update article.md

Just a little typos
This commit is contained in:
ofcRS 2019-03-17 13:46:15 +04:00 committed by GitHub
parent 440f4086d4
commit ac742683d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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