Skip to content

Commit c5fab43

Browse files
authored
Fix typo, so it actually does invoke the setter
1 parent 0d2fc22 commit c5fab43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class User {
241241
242242
constructor(name) {
243243
// invokes the setter
244-
this._name = name;
244+
this.name = name;
245245
}
246246
247247
*!*

0 commit comments

Comments
 (0)