We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loadJson
loadGithubUser
1 parent ef8d576 commit 12d7968Copy full SHA for 12d7968
1-js/11-async/03-promise-chaining/article.md
@@ -332,8 +332,7 @@ function loadJson(url) {
332
}
333
334
function loadGithubUser(name) {
335
- return fetch(`https://api.github.com/users/${name}`)
336
- .then(response => response.json());
+ return loadJson(`https://api.github.com/users/${name}`);
337
338
339
function showAvatar(githubUser) {
0 commit comments