Merge pull request #1704 from baooab/patch-3

Fix typo
This commit is contained in:
Ilya Kantor 2020-01-18 15:25:41 +01:00 committed by GitHub
commit b2d69c1bd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ alert(user.fullName); // John Smith
for(let key in user) alert(key); // name, surname
```
Please note once again that a property can be either an accessor (has `get/set` methods) or a data property (has a `value`), not both.
Please note that a property can be either an accessor (has `get/set` methods) or a data property (has a `value`), not both.
If we try to supply both `get` and `value` in the same descriptor, there will be an error: