Skip to content

Commit 1349e70

Browse files
authored
Merge pull request #894 from amolpatravali97/patch-1
Mistake in naming the property name.
2 parents 67ed0e0 + e3e4502 commit 1349e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/09-classes/02-class/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class User {
163163

164164
constructor(name) {
165165
// invokes the setter
166-
this.name = name;
166+
this._name = name;
167167
}
168168

169169
*!*

0 commit comments

Comments
 (0)