Skip to content

Commit 8c1b767

Browse files
authored
Update article.md
Grammar
1 parent 30e3fa7 commit 8c1b767

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
There are two kinds of properties.
55

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.
77

88
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.
99

@@ -189,9 +189,9 @@ Technically, external code is able to access the name directly by using `user._n
189189

190190
## Using for compatibility
191191

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.
193193

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`:
195195

196196
```js
197197
function User(name, age) {

0 commit comments

Comments
 (0)