diff --git a/5-network/08-xmlhttprequest/article.md b/5-network/08-xmlhttprequest/article.md index 1a2b754e..6b4d3d73 100644 --- a/5-network/08-xmlhttprequest/article.md +++ b/5-network/08-xmlhttprequest/article.md @@ -93,7 +93,7 @@ xhr.onload = function() { if (xhr.status != 200) { // analyze HTTP status of the response alert(`Error ${xhr.status}: ${xhr.statusText}`); // e.g. 404: Not Found } else { // show the result - alert(`Done, got ${xhr.response.length} bytes`); // response is the server + alert(`Done, got ${xhr.response.length} bytes`); // response is the server response } }; @@ -190,7 +190,7 @@ All states, as in [the specification](https://xhr.spec.whatwg.org/#states): UNSENT = 0; // initial state OPENED = 1; // open called HEADERS_RECEIVED = 2; // response headers received -LOADING = 3; // response is loading (a data packed is received) +LOADING = 3; // response is loading (a data packet is received) DONE = 4; // request complete ```