We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deece9f commit 045be32Copy full SHA for 045be32
doc/prototype.md
@@ -41,7 +41,7 @@ defined on `Foo`. But it will not have access to the property `value` of a
41
`Foo` instance, since that property gets defined in the [constructor](#constructor)
42
of `Foo`. But this constructor has to be called explicitly.
43
44
-> **Note:** Do **not** use `Bar.property = Foo`, since it will not point to
+> **Note:** Do **not** use `Bar.prototype = Foo`, since it will not point to
45
> the prototype of `Foo` but rather to the function object `Foo`. So the
46
> prototype chain will go over `Function.prototype` and not `Foo.prototype`;
47
> therefore, `method` will not be on the prototype chain.
0 commit comments