Merge pull request #2065 from C17AN/patch-1

[Typo Correction] - "fetch" solution typo error
This commit is contained in:
Ilya Kantor 2020-08-14 17:10:55 +03:00 committed by GitHub
commit 9add5e76d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ To fetch a user we need: `fetch('https://api.github.com/users/USERNAME')`.
If the response has status `200`, call `.json()` to read the JS object. If the response has status `200`, call `.json()` to read the JS object.
Otherwise, if a `fetch` fails, or the response has non-200 status, we just return `null` in the resulting arrray. Otherwise, if a `fetch` fails, or the response has non-200 status, we just return `null` in the resulting array.
So here's the code: So here's the code: