We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eef15b commit 6b48536Copy full SHA for 6b48536
files/en-us/web/javascript/inheritance_and_the_prototype_chain/index.md
@@ -97,7 +97,7 @@ console.log(o.m()); // 3
97
const p = Object.create(o);
98
// p is an object that inherits from o
99
100
-p.a = 4; // creates a property 'a' on p
+p.a = 4; // assign the value 4 to the property 'a' on p
101
console.log(p.m()); // 5
102
// when p.m is called, 'this' refers to p.
103
// So when p inherits the function m of o,
0 commit comments