You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/06-alert-prompt-confirm/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ It shows a modal window with a text message, an input field for the visitor, and
31
31
: An optional second parameter, the initial value for the input field.
32
32
33
33
```smart header="The square brackets in syntax `[...]`"
34
-
The square brackets around `default` in the syntax above denote that the parameter as optional, not required.
34
+
The square brackets around `default` in the syntax above denote that the parameter is optional, not required.
35
35
```
36
36
37
37
The visitor can type something in the prompt input field and press OK. Then we get that text in the `result`. Or they can cancel the input by pressing Cancel or hitting the `key:Esc` key, then we get `null` as the `result`.
0 commit comments