From c47a379512095e4efe0fa3640c2971d32e4c1eb8 Mon Sep 17 00:00:00 2001 From: GhozDev <48717360+SherifGhoz@users.noreply.github.com> Date: Tue, 19 Mar 2019 13:28:44 +0200 Subject: [PATCH] a bug (Maximum call stack size exceeded) fixing getting "wateramount" --- .../05-private-protected-properties-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/09-classes/05-private-protected-properties-methods/article.md b/1-js/09-classes/05-private-protected-properties-methods/article.md index 7af04797..82466331 100644 --- a/1-js/09-classes/05-private-protected-properties-methods/article.md +++ b/1-js/09-classes/05-private-protected-properties-methods/article.md @@ -101,7 +101,7 @@ class CoffeeMachine { } get waterAmount() { - return this.waterAmount; + return this._waterAmount; } constructor(power) {