typo: missing underscore prefix for _name
This commit is contained in:
parent
ec5e557052
commit
04ba7ca07d
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class User {
|
||||||
|
|
||||||
constructor(name) {
|
constructor(name) {
|
||||||
// invokes the setter
|
// invokes the setter
|
||||||
this.name = name;
|
this._name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
*!*
|
*!*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue