From 9927cd09deef0df9336efb20e09d0f3b1d4d5e4c Mon Sep 17 00:00:00 2001 From: Peter Roche <46547072+paroche@users.noreply.github.com> Date: Mon, 3 Feb 2020 20:23:05 -0700 Subject: [PATCH] Update article.md Maybe clarifying a bit where `.json()` comes from. I personally found it a bit confusing at first. --- 1-js/11-async/03-promise-chaining/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/11-async/03-promise-chaining/article.md b/1-js/11-async/03-promise-chaining/article.md index 7dd9fb67..bd072cc2 100644 --- a/1-js/11-async/03-promise-chaining/article.md +++ b/1-js/11-async/03-promise-chaining/article.md @@ -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: