minor fixes
This commit is contained in:
parent
fb4dda68e5
commit
f0ad0bafa2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ function f() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
We may get this error if we forget to put `async` before a function. As said, `await` only works inside an `async function`.
|
We may get this error if we forget to put `async` before a function. As said, `await` only works inside an `async` function.
|
||||||
````
|
````
|
||||||
|
|
||||||
Let's take the `showAvatar()` example from the chapter <info:promise-chaining> and rewrite it using `async/await`:
|
Let's take the `showAvatar()` example from the chapter <info:promise-chaining> and rewrite it using `async/await`:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue