Merge pull request #900 from atulsm/master

Fixing the syntax typo in prompt function definition
This commit is contained in:
Ilya Kantor 2019-04-09 23:36:58 +03:00 committed by GitHub
commit 88c371a607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ The mini-window with the message is called a *modal window*. The word "modal" me
The function `prompt` accepts two arguments:
```js no-beautify
result = prompt(title[, default]);
result = prompt(title, [default]);
```
It shows a modal window with a text message, an input field for the visitor, and the buttons OK/CANCEL.

View file

@ -102,7 +102,7 @@ More in: <info:variables> and <info:types>.
We're using a browser as a working environment, so basic UI functions will be:
[`prompt(question[, default])`](mdn:api/Window/prompt)
[`prompt(question, [default])`](mdn:api/Window/prompt)
: Ask a `question`, and return either what the visitor entered or `null` if they pressed "cancel".
[`confirm(question)`](mdn:api/Window/confirm)