Skip to content

Commit 88c371a

Browse files
authored
Merge pull request #900 from atulsm/master
Fixing the syntax typo in prompt function definition
2 parents 6761dac + d25d29c commit 88c371a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The mini-window with the message is called a *modal window*. The word "modal" me
2727
The function `prompt` accepts two arguments:
2828

2929
```js no-beautify
30-
result = prompt(title[, default]);
30+
result = prompt(title, [default]);
3131
```
3232

3333
It shows a modal window with a text message, an input field for the visitor, and the buttons OK/CANCEL.

1-js/02-first-steps/16-javascript-specials/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ More in: <info:variables> and <info:types>.
102102

103103
We'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)

0 commit comments

Comments
 (0)