computed property name instead of computed propert

"computed property" term can make us recall "dynamically computed property" like fullname. And it can create misunderstanding.

get fullname(){
    return this.name+ ' ' + this.surname;
}
This commit is contained in:
Mustafa Kemal Tuna 2019-11-05 14:24:00 +03:00 committed by GitHub
parent dcb9d87ab8
commit 0f91236b11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -282,7 +282,7 @@ Object.defineProperties(User.prototype, {
}); });
``` ```
Here's an example with a computed property in brackets `[...]`: Here's an example with a computed property name in brackets `[...]`:
```js run ```js run
class User { class User {