Update solution.md
Fix typos
This commit is contained in:
parent
40074e0186
commit
dd6a630888
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ loadJson('no-such-user.json')
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
1. The function `loadUrl` becomes `async`.
|
1. The function `loadJson` becomes `async`.
|
||||||
2. All `.then` inside are replaced with `await`.
|
2. All `.then` inside are replaced with `await`.
|
||||||
3. We can `return response.json()` instead of awaiting for it, like this:
|
3. We can `return response.json()` instead of awaiting for it, like this:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue