From 1fd81b642dc90921c87b1a1b5bda243ac26c7ee8 Mon Sep 17 00:00:00 2001 From: JackYang Date: Thu, 11 Oct 2018 16:33:19 +0800 Subject: [PATCH] Update demo.js --- classes-es6/demo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes-es6/demo.js b/classes-es6/demo.js index 7340dce214..e98aa2c819 100644 --- a/classes-es6/demo.js +++ b/classes-es6/demo.js @@ -77,7 +77,7 @@ class Square extends Polygon { } set area(value) { - this.area = value; + this._area = value; } }