Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4131b29

Browse files
FIX: delete extra space
1 parent 649539e commit 4131b29

File tree

1 file changed

+2
-2
lines changed
  • 1-js/08-prototypes/01-prototype-inheritance

1 file changed

+2
-2
lines changed

‎1-js/08-prototypes/01-prototype-inheritance/article.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ alert(admin.fullName); // John Smith (*)
198198
// setter triggers!
199199
admin.fullName = "Alice Cooper"; // (**)
200200

201-
alert(admin.fullName); // Alice Cooper, state of admin modified
202-
alert(user.fullName); // John Smith, state of user protected
201+
alert(admin.fullName); // Alice Cooper, state of admin modified
202+
alert(user.fullName); // John Smith, state of user protected
203203
```
204204

205205
Here in the line `(*)` the property `admin.fullName` has a getter in the prototype `user`, so it is called. And in the line `(**)` the property has a setter in the prototype, so it is called.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /