File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ The mini-window with the message is called a *modal window*. The word "modal" me
2727The function ` prompt ` accepts two arguments:
2828
2929``` js no-beautify
30- result = prompt (title[, default]);
30+ result = prompt (title, [ default]);
3131```
3232
3333It shows a modal window with a text message, an input field for the visitor, and the buttons OK/CANCEL.
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ More in: <info:variables> and <info:types>.
102102
103103We're using a browser as a working environment, so basic UI functions will be:
104104
105- [ ` prompt(question[, default]) ` ] ( mdn:api/Window/prompt )
105+ [ ` prompt(question, [ default]) ` ] ( mdn:api/Window/prompt )
106106: Ask a ` question ` , and return either what the visitor entered or ` null ` if they pressed "cancel".
107107
108108[ ` confirm(question) ` ] ( mdn:api/Window/confirm )
You can’t perform that action at this time.
0 commit comments