File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/11-async/03-promise-chaining Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,14 +283,14 @@ fetch('/article/promise-chaining/user.json')
283
283
284
284
Now let's do something with the loaded user.
285
285
286
- For instance, we can make one more request to github , load the user profile and show the avatar:
286
+ For instance, we can make one more request to GitHub , load the user profile and show the avatar:
287
287
288
288
``` js run
289
289
// Make a request for user.json
290
290
fetch (' /article/promise-chaining/user.json' )
291
291
// Load it as json
292
292
.then (response => response .json ())
293
- // Make a request to github
293
+ // Make a request to GitHub
294
294
.then (user => fetch (` https://api.github.com/users/${ user .name } ` ))
295
295
// Load the response as json
296
296
.then (response => response .json ())
You can’t perform that action at this time.
0 commit comments