Skip to content

Commit 31d3057

Browse files
authored
Merge pull request #82 from IanWitham/patch-2
Fixed unclear syntax and gendered language
2 parents b160967 + acf0b2f commit 31d3057

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For example:
2222
alert("Hello");
2323
```
2424

25-
The mini-window with the message is called a *modal window*. The word "modal" means that the visitor can't interact with the rest of the page, press other buttons etc, until he deals with the window. In this case -- until he presses "OK".
25+
The mini-window with the message is called a *modal window*. The word "modal" means that the visitor can't interact with the rest of the page, press other buttons etc, until they have dealt with the window. In this case -- until they press "OK".
2626

2727
## prompt
2828

@@ -40,7 +40,7 @@ It shows a modal window with a text message, an input field for the visitor and
4040
`default`
4141
: An optional second parameter, the initial value for the input field.
4242

43-
The visitor may type something in the prompt input field and press OK. Or he can cancel the input by pressing a CANCEL button or hitting the `key:Esc` key.
43+
The visitor may type something in the prompt input field and press OK. Or they can cancel the input by pressing a CANCEL button or hitting the `key:Esc` key.
4444

4545
The call to `prompt` returns the text from the field or `null` if the input was canceled.
4646

@@ -101,7 +101,7 @@ We covered 3 browser-specific functions to interact with the visitor:
101101
`confirm`
102102
: shows a message and waits the user to press "OK" or "CANCEL". It returns `true` for OK and `false` for CANCEL/`key:Esc`.
103103
104-
All these methods are modal: they pause the script execution and don't let the visitor to interact with the rest of the page until he dismisses them.
104+
All these methods are modal: they pause the script execution and don't allow the visitor to interact with the rest of the page until the message has been dismissed.
105105
106106
There are two limitations shared by all the methods above:
107107

0 commit comments

Comments
 (0)