Update article.md

Updated typo properety
This commit is contained in:
Alien Fernandez 2019-05-09 11:53:04 -05:00 committed by GitHub
parent b9714f12c8
commit 07e09f8b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ alert(user.surname); // Cooper
Now we have a "virtual" property. It is readable and writable, but in fact does not exist.
```smart header="Accessor properties are only accessible with get/set"
Once a property is defined with `get prop()` or `set prop()`, it's an accessor property, not a data properety any more.
Once a property is defined with `get prop()` or `set prop()`, it's an accessor property, not a data property any more.
- If there's a getter -- we can read `object.prop`, otherwise we can't.
- If there's a setter -- we can set `object.prop=...`, otherwise we can't.