Use gender neutral pronouns
This commit is contained in:
parent
ded121f974
commit
e4a4426ff1
24 changed files with 37 additions and 37 deletions
|
@ -247,7 +247,7 @@ const myBirthday = '18.04.1982';
|
|||
myBirthday = '01.01.2001'; // error, can't reassign the constant!
|
||||
```
|
||||
|
||||
When a programmer is sure that the variable should never change, he can use `const` to guarantee it, and also to clearly show that fact to everyone.
|
||||
When a programmer is sure that the variable should never change, they can use `const` to guarantee it, and also to clearly show that fact to everyone.
|
||||
|
||||
|
||||
### Uppercase constants
|
||||
|
|
|
@ -4,7 +4,7 @@ importance: 5
|
|||
|
||||
# Repeat until the input is correct
|
||||
|
||||
Write a loop which prompts for a number greater than `100`. If the visitor enters another number -- ask him to input again.
|
||||
Write a loop which prompts for a number greater than `100`. If the visitor enters another number -- ask them to input again.
|
||||
|
||||
The loop must ask for a number until either the visitor enters a number greater than `100` or cancels the input/enters an empty line.
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ More in: <info:variables> and <info:types>.
|
|||
We're using a browser as a working environment, so basic UI functions will be:
|
||||
|
||||
[`prompt(question[, default])`](mdn:api/Window/prompt)
|
||||
: Ask a `question`, and return either what the visitor entered or `null` if he pressed "cancel".
|
||||
: Ask a `question`, and return either what the visitor entered or `null` if they pressed "cancel".
|
||||
|
||||
[`confirm(question)`](mdn:api/Window/confirm)
|
||||
: Ask a `question` and suggest to choose between Ok and Cancel. The choice is returned as `true/false`.
|
||||
|
@ -111,7 +111,7 @@ We're using a browser as a working environment, so basic UI functions will be:
|
|||
[`alert(message)`](mdn:api/Window/alert)
|
||||
: Output a `message`.
|
||||
|
||||
All these functions are *modal*, they pause the code execution and prevent the visitor from interacting with the page until he answers.
|
||||
All these functions are *modal*, they pause the code execution and prevent the visitor from interacting with the page until they answer.
|
||||
|
||||
For instance:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue