Skip to content

Commit cd2c7ce

Browse files
authored
minor
1 parent d36675e commit cd2c7ce

File tree

1 file changed

+3
-3
lines changed
  • 1-js/07-object-properties/02-property-accessors

1 file changed

+3
-3
lines changed

1-js/07-object-properties/02-property-accessors/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
# Property getters and setters
33

4-
There are two kinds of properties.
4+
There are two kinds of object properties.
55

66
The first kind is *data properties*. We already know how to work with them. All properties that we've been using until now were data properties.
77

8-
The second type of properties is something new. It's *accessor properties*. They are essentially functions that work on getting and setting a value, but look like regular properties to an external code.
8+
The second type of properties is something new. It's *accessor properties*. They are essentially functions that execute on getting and setting a value, but look like regular properties to an external code.
99

1010
## Getters and setters
1111

@@ -53,7 +53,7 @@ alert(user.fullName); // John Smith
5353
*/!*
5454
```
5555

56-
From outside, an accessor property looks like a regular one. That's the idea of accessor properties. We don't *call* `user.fullName` as a function, we *read* it normally: the getter runs behind the scenes.
56+
From the outside, an accessor property looks like a regular one. That's the idea of accessor properties. We don't *call* `user.fullName` as a function, we *read* it normally: the getter runs behind the scenes.
5757

5858
As of now, `fullName` has only a getter. If we attempt to assign `user.fullName=`, there will be an error:
5959

0 commit comments

Comments
 (0)