commit
2774d330ec
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ let user = await response.json();
|
||||||
|
|
||||||
We can wrap it into an anonymous async function, like this:
|
We can wrap it into an anonymous async function, like this:
|
||||||
|
|
||||||
```js run
|
```js
|
||||||
(async () => {
|
(async () => {
|
||||||
let response = await fetch('/article/promise-chaining/user.json');
|
let response = await fetch('/article/promise-chaining/user.json');
|
||||||
let user = await response.json();
|
let user = await response.json();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue