You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/07-object-properties/02-property-accessors/article.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
There are two kinds of properties.
5
5
6
-
The first kind is *data properties*. We already know how to work with them. All properties that we've been using till now were data properties.
6
+
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.
7
7
8
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.
9
9
@@ -189,9 +189,9 @@ Technically, external code is able to access the name directly by using `user._n
189
189
190
190
## Using for compatibility
191
191
192
-
One of the great uses of accessors -- they allow to take control over a "regular" data property at any moment by replacing it with getter and setter and tweak its behavior.
192
+
One of the great uses of accessors is that they allow to take control over a "regular" data property at any moment by replacing it with a getter and a setter and tweak its behavior.
193
193
194
-
Imagine, we started implementing user objects using data properties `name` and `age`:
194
+
Imagine we started implementing user objects using data properties `name` and `age`:
0 commit comments