From 5f3ef283099ce84ab78b2e9bfddc0851073a34e6 Mon Sep 17 00:00:00 2001 From: Anton Grischenko Date: Tue, 6 Jan 2026 02:18:09 +0500 Subject: [PATCH] =?UTF-8?q?IE=20=D0=BC=D1=91=D1=80=D1=82=D0=B2,=20=D1=81?= =?UTF-8?q?=D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81=D1=82=D0=B2=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=20=D0=BD=D0=B5=D1=82=20=D1=81=D0=BC=D1=8B?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=20=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BA=D0=BE=D0=B4=20=D0=BF=D0=BE=D0=B4=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=B3=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed warning about default value for prompt in IE. --- .../06-alert-prompt-confirm/article.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/1-js/02-first-steps/06-alert-prompt-confirm/article.md b/1-js/02-first-steps/06-alert-prompt-confirm/article.md index 6a0bce1713..dd219fdb19 100644 --- a/1-js/02-first-steps/06-alert-prompt-confirm/article.md +++ b/1-js/02-first-steps/06-alert-prompt-confirm/article.md @@ -46,22 +46,6 @@ let age = prompt('Сколько тебе лет?', 100); alert(`Тебе ${age} лет!`); // Тебе 100 лет! ``` -````warn header="Для IE: всегда устанавливайте значение по умолчанию" -Второй параметр является необязательным, но если не указать его, то Internet Explorer вставит строку `"undefined"` в поле для ввода. - -Запустите код в Internet Explorer и посмотрите на результат: - -```js run -let test = prompt("Test"); -``` - -Чтобы `prompt` хорошо выглядел в IE, рекомендуется всегда указывать второй параметр: - -```js run -let test = prompt("Test", ''); // <-- для IE -``` -```` - ## confirm Синтаксис: