From 5138c587be507f01167b7c2a3d5c33e1c6b80824 Mon Sep 17 00:00:00 2001 From: paroche <46547072+paroche@users.noreply.github.com> Date: Fri, 13 Sep 2019 16:50:27 -0600 Subject: [PATCH] Update article.md Wording adjustments in Summary lines "- Write/delete...", and "- The `for..in`...". --- 1-js/08-prototypes/01-prototype-inheritance/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/08-prototypes/01-prototype-inheritance/article.md b/1-js/08-prototypes/01-prototype-inheritance/article.md index 5895a0b3..76b29438 100644 --- a/1-js/08-prototypes/01-prototype-inheritance/article.md +++ b/1-js/08-prototypes/01-prototype-inheritance/article.md @@ -324,6 +324,6 @@ They only operate on the object itself. Properties from the prototype are *not* - We can use `obj.__proto__` to access it (a historical getter/setter, there are other ways, to be covered soon). - The object referenced by `[[Prototype]]` is called a "prototype". - If we want to read a property of `obj` or call a method, and it doesn't exist, then JavaScript tries to find it in the prototype. -- Write/delete operations for act directly on the object, they don't use the prototype (assuming it's a data property, not is a setter). +- Write/delete operations act directly on the object, they don't use the prototype (assuming it's a data property, not a setter). - If we call `obj.method()`, and the `method` is taken from the prototype, `this` still references `obj`. So methods always work with the current object even if they are inherited. -- The `for..in` loop iterates over both own and inherited properties. All other key/value-getting methods only operate on the object itself. +- The `for..in` loop iterates over both its own and its inherited properties. All other key/value-getting methods only operate on the object itself.