Skip to content

Commit

Permalink
Update 1-js/02-first-steps/16-javascript-specials/article.md
Browse files Browse the repository at this point in the history
Co-Authored-By: Alexey Pyltsyn <[email protected]>
  • Loading branch information
pimonenkov and lex111 committed May 10, 2019
1 parent 102cbda commit 4deb378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1-js/02-first-steps/16-javascript-specials/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ typeof function(){} == "function" // функции в языке на особ
[`prompt(question, [default])`](https://developer.mozilla.org/ru/docs/Web/API/Window/prompt)
: Задаёт посетителю вопрос (`question`) и ждёт от него ответ. На выходе получается либо строка с ответом, либо `null`, если посетитель нажал на кнопку "Отмена".

[`confirm(вопрос)`](https://developer.mozilla.org/ru/docs/Web/API/Window/confirm)
[`confirm(question)`](https://developer.mozilla.org/ru/docs/Web/API/Window/confirm)
: Задаём посетителю `вопрос`, на который он может ответить с помощью кнопок "ОК" или "Отмена", что вернёт нам `true` или `false`, соответственно.

[`alert(сообщение)`](https://developer.mozilla.org/ru/docs/Web/API/Window/alert)
Expand Down

0 comments on commit 4deb378

Please sign in to comment.