Skip to content

Commit 0121d62

Browse files
authored
Merge pull request javascript-tutorial#36 from nathanallen/patch-1
typo: missing underscore prefix for _name
2 parents ec5e557 + 04ba7ca commit 0121d62

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)