From 8a9d97a7f927d139e2f83e2a9e993516e2f9ead7 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Tue, 16 Apr 2019 15:02:07 +1000 Subject: [PATCH] itselfs -> itself --- .../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 90d41e65..7f891aba 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 @@ -257,7 +257,7 @@ machine.waterAmount = 100; alert(machine.#waterAmount); // Error ``` -Unlike protected ones, private fields are enforced by the language itselfs. That's a good thing. +Unlike protected ones, private fields are enforced by the language itself. That's a good thing. But if we inherit from `CoffeeMachine`, then we'll have no direct access to `#waterAmount`. We'll need to rely on `waterAmount` getter/setter: