Use gender neutral pronouns
This commit is contained in:
parent
ded121f974
commit
e4a4426ff1
24 changed files with 37 additions and 37 deletions
|
@ -118,7 +118,7 @@ user.name = "Pete"; // Error: Cannot assign to read only property 'name'...
|
|||
*/!*
|
||||
```
|
||||
|
||||
Now no one can change the name of our user, unless he applies his own `defineProperty` to override ours.
|
||||
Now no one can change the name of our user, unless they apply their own `defineProperty` to override ours.
|
||||
|
||||
Here's the same operation, but for the case when a property doesn't exist:
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ alert( lazy.stomach ); // <nothing>
|
|||
|
||||
Now all works fine, because `this.stomach=` does not perform a lookup of `stomach`. The value is written directly into `this` object.
|
||||
|
||||
Also we can totally evade the problem by making sure that each hamster has his own stomach:
|
||||
Also we can totally evade the problem by making sure that each hamster has their own stomach:
|
||||
|
||||
```js run
|
||||
let hamster = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue