Update article.md
This commit is contained in:
parent
6c2ece0860
commit
50483c319c
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ We can get such error in case if we forget to put `async` before a function. As
|
|||
|
||||
Let's take `showAvatar()` example from the chapter <info:promise-chaining> and rewrite it using `async/await`:
|
||||
|
||||
1. First we'll need to replace `.then` calls by `await`.
|
||||
2. And we should make the function `async` for them to work.
|
||||
1. We'll need to replace `.then` calls by `await`.
|
||||
2. Also we should make the function `async` for them to work.
|
||||
|
||||
```js run
|
||||
async function showAvatar() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue