From e3e4502ce2dddceba10066fad944475479fc96ab Mon Sep 17 00:00:00 2001 From: Amol K Patravali <34392658+amolpatravali97@users.noreply.github.com> Date: Mon, 8 Apr 2019 13:45:26 +0530 Subject: [PATCH] Mistake in naming the property name. The getter and setter are referring to this._name and the property name that is stored is this.name. Changed it to this._name. --- 1-js/09-classes/02-class/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/02-class/article.md b/1-js/09-classes/02-class/article.md index 530ce9b5..74a6e808 100644 --- a/1-js/09-classes/02-class/article.md +++ b/1-js/09-classes/02-class/article.md @@ -163,7 +163,7 @@ class User { constructor(name) { // invokes the setter - this.name = name; + this._name = name; } *!*