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.
2 parents 3b7a35e + 12d7968 commit a6c0fadCopy full SHA for a6c0fad
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