Skip to content

Commit 6b48536

Browse files
authored
Change "creates a property 'a' on p" (mdn#13239)
1 parent 6eef15b commit 6b48536

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/javascript/inheritance_and_the_prototype_chain

1 file changed

+1
-1
lines changed

files/en-us/web/javascript/inheritance_and_the_prototype_chain/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ console.log(o.m()); // 3
9797
const p = Object.create(o);
9898
// p is an object that inherits from o
9999

100-
p.a = 4; // creates a property 'a' on p
100+
p.a = 4; // assign the value 4 to the property 'a' on p
101101
console.log(p.m()); // 5
102102
// when p.m is called, 'this' refers to p.
103103
// So when p inherits the function m of o,

0 commit comments

Comments
 (0)