[Typo Correction] - "fetch" solution typo error

fixed typo - "arrray" to "array"
This commit is contained in:
Chan-Min, Kim 2020-08-14 23:09:57 +09:00 committed by GitHub
parent 665b8ebbba
commit 43ff24e088
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: