Skip to content

Commit 6ef9dfb

Browse files
authored
Update article.md
1 parent 12b5f26 commit 6ef9dfb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • 1-js/02-first-steps/09-alert-prompt-confirm

1-js/02-first-steps/09-alert-prompt-confirm/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ result = prompt(title, [default]);
4646
For instance:
4747

4848
```js run
49-
let age = prompt('How old are you?', 100);
49+
let age = prompt('Сколько тебе лет?', 100);
5050

51-
alert(`You are ${age} years old!`); // You are 100 years old!
51+
alert(`Тебе ${age} лет!`); // Тебе 100 лет!
5252
```
5353

54-
````warn header="In IE: always supply a `default`"
55-
The second parameter is optional, but if we don't supply it, Internet Explorer will insert the text `"undefined"` into the prompt.
54+
````warn header="Для IE: всегда устанавливайте значение по-умолчанию"
55+
Второй параметр не обязательный, но если не указать его, то Internet Explorer установить значение `"undefined"` в поле для ввода.
5656
57-
Run this code in Internet Explorer to see:
57+
Запустите код в Internet Explorer и посмотрите на результат:
5858
5959
```js run
6060
let test = prompt("Test");

0 commit comments

Comments
 (0)