Re: [whatwg/fetch] Fetch params and method confusion in ajax query (#1239)

askubuntu is the wrong place, because this issue is unrelated to ubuntu.

Anyway, I think this is the answer to your question:

```js
async function demo() {
  // Get response
  const response = await fetch(url);
  // Get response as JSON
  const data = await response.json();
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1239#issuecomment-847779725

Received on Tuesday, 25 May 2021 11:13:54 UTC