Merge pull request #1737 from javascript-tutorial/paroche-patch-15

Update article.md
This commit is contained in:
Ilya Kantor 2020-02-05 10:47:11 +00:00 committed by GitHub
commit 0081fbdfb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,7 +252,7 @@ fetch('/article/promise-chaining/user.json')
});
```
There is also a method `response.json()` that reads the remote data and parses it as JSON. In our case that's even more convenient, so let's switch to it.
The `response` object returned from `fetch` also includes the method `response.json()` that reads the remote data and parses it as JSON. In our case that's even more convenient, so let's switch to it.
We'll also use arrow functions for brevity: