From f1b852ddb0121910fd774b8d5a23057320a1564d Mon Sep 17 00:00:00 2001 From: VovaChl <115529520+VovaChl@users.noreply.github.com> Date: Tue, 10 Jun 2025 17:20:20 +0500 Subject: [PATCH] Fixes response JSON MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes response JSON changed { "сообщение": ... } to { "message": ... } becouse of use in next lines --- 5-network/08-xmlhttprequest/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-network/08-xmlhttprequest/article.md b/5-network/08-xmlhttprequest/article.md index a6f1441b06..28a9c8d9fb 100644 --- a/5-network/08-xmlhttprequest/article.md +++ b/5-network/08-xmlhttprequest/article.md @@ -171,7 +171,7 @@ xhr.responseType = 'json'; xhr.send(); -// тело ответа {"сообщение": "Привет, мир!"} +// тело ответа {"message": "Привет, мир!"} xhr.onload = function() { let responseObj = xhr.response; alert(responseObj.message); // Привет, мир!