Merge pull request #900 from atulsm/master
Fixing the syntax typo in prompt function definition
This commit is contained in:
commit
88c371a607
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue