Skip to content

Commit 6a02eec

Browse files
committed
a couple tweaks as requested by @iliakan
1 parent 7c4e356 commit 6a02eec

File tree

1 file changed

+2
-2
lines changed
  • 1-js/07-object-oriented-programming/02-property-accessors

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ alert(user.fullName); // John Smith
5555
*/!*
5656
```
5757

58-
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.
58+
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.
5959

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

@@ -97,7 +97,7 @@ Sometimes it's normal that there's only a setter or only a getter. But the prope
9797

9898
## Accessor descriptors
9999

100-
Descriptors for accessor properties are different - as compared with data properties.
100+
Descriptors for accessor properties are different -- as compared with data properties.
101101

102102
For accessor properties, there is no `value` and `writable`, but instead there are `get` and `set` functions.
103103

0 commit comments

Comments
 (0)