Skip to content

Commit 04ba7ca

Browse files
authored
typo: missing underscore prefix for _name
1 parent ec5e557 commit 04ba7ca

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-oriented-programming/09-class

1 file changed

+1
-1
lines changed

1-js/07-object-oriented-programming/09-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class User {
114114
115115
constructor(name) {
116116
// invokes the setter
117-
this.name = name;
117+
this._name = name;
118118
}
119119
120120
*!*

0 commit comments

Comments
 (0)