Fix typo.

This commit is contained in:
carsca 2019-10-25 14:11:42 +02:00 committed by GitHub
parent fac4413c60
commit 8d3fbcc997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ fetch('https://api.github.com/repos/javascript-tutorial/en.javascript.info/commi
.then(commits => alert(commits[0].author.login));
```
To get the reponse text, `await response.text()` instead of `.json()`:
To get the response text, `await response.text()` instead of `.json()`:
```js run async
let response = await fetch('https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits');