Skip to content

Commit 2f47a94

Browse files
committed
minor fix
changed the translation of get to be consistent
1 parent a14e40a commit 2f47a94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5-network/01-fetch/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if (response.ok) { // dacă HTTP-status este 200-299
6868
- **`response.arrayBuffer()`** -- returnează răspunsul ca [ArrayBuffer](info:arraybuffer-binary-arrays) (reprezentare low-level a datelor binare),
6969
- adițional, `response.body` este un obiect [ReadableStream](https://streams.spec.whatwg.org/#rs-class), care îți permite să citești corpul bucată-cu-bucată, vom vedea un exemplu mai târziu.
7070

71-
De exemplu, haideți să luăm un obiect JSON cu ultimele commits din GitHub:
71+
De exemplu, haideți să obținem un obiect JSON cu ultimele commits din GitHub:
7272

7373
```js run async
7474
let url = 'https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits';
@@ -89,7 +89,7 @@ fetch('https://api.github.com/repos/javascript-tutorial/en.javascript.info/commi
8989
.then(commits => alert(commits[0].author.login));
9090
```
9191

92-
Pentru a lua response text, `await response.text()` în loc de `.json()`:
92+
Pentru a obține response text, `await response.text()` în loc de `.json()`:
9393

9494
```js run async
9595
let response = await fetch('https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits');

0 commit comments

Comments
 (0)