Merge pull request #2065 from C17AN/patch-1
[Typo Correction] - "fetch" solution typo error
This commit is contained in:
commit
9add5e76d5
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue