Merge pull request #2214 from leviding/patch-29

FIX: delete extra space
This commit is contained in:
Ilya Kantor 2020-10-22 23:42:12 +03:00 committed by GitHub
commit 3897d24e7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -198,8 +198,8 @@ alert(admin.fullName); // John Smith (*)
// setter triggers! // setter triggers!
admin.fullName = "Alice Cooper"; // (**) admin.fullName = "Alice Cooper"; // (**)
alert(admin.fullName); // Alice Cooper , state of admin modified alert(admin.fullName); // Alice Cooper, state of admin modified
alert(user.fullName); // John Smith , state of user protected alert(user.fullName); // John Smith, state of user protected
``` ```
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. 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.