Skip to content

Commit 1728f97

Browse files
authored
Fixing the syntax typo in prompt
1 parent 0789e38 commit 1728f97

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/09-alert-prompt-confirm

1 file changed

+1
-1
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.

0 commit comments

Comments
 (0)