Link errors
This commit is contained in:
parent
aeabf4bf9b
commit
9204d08796
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ In this chapter we cover additional methods to work with a prototype.
|
|||
There are also other ways to get/set a prototype, besides those that we already know:
|
||||
|
||||
- [Object.create(proto[, descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
|
||||
- [Object.getPrototypeOf(obj)](mdn:js/Object.getPrototypeOf) -- returns the `[[Prototype]]` of `obj`.
|
||||
- [Object.setPrototypeOf(obj, proto)](mdn:js/Object.setPrototypeOf) -- sets the `[[Prototype]]` of `obj` to `proto`.
|
||||
- [Object.getPrototypeOf(obj)](mdn:js/Object/getPrototypeOf) -- returns the `[[Prototype]]` of `obj`.
|
||||
- [Object.setPrototypeOf(obj, proto)](mdn:js/Object/setPrototypeOf) -- sets the `[[Prototype]]` of `obj` to `proto`.
|
||||
|
||||
[cut]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue