commit
b2d69c1bd3
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue