Skip to content

Commit 9927cd0

Browse files
authored
Update article.md
Maybe clarifying a bit where `.json()` comes from. I personally found it a bit confusing at first.
1 parent a193448 commit 9927cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/11-async/03-promise-chaining/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ fetch('/article/promise-chaining/user.json')
252252
});
253253
```
254254

255-
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.
255+
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.
256256

257257
We'll also use arrow functions for brevity:
258258

0 commit comments

Comments
 (0)