contents(quiz): fix typo in "Example of Prototypal Inheritance" (#372)
There was an extra '-' that caused "Currently, `child.constructor` is pointing to the `Parent`" to move to the list of ways to calling Object.create.
This commit is contained in:
parent
9079454996
commit
7fe6ec7118
|
|
@ -86,9 +86,8 @@ Things to note are:
|
|||
- Object.create(Parent.prototype);
|
||||
- Object.create(new Parent(null));
|
||||
- Object.create(objLiteral);
|
||||
- Currently, `child.constructor` is pointing to the `Parent`:
|
||||
|
||||
If we'd like to correct this, one option would be to do:
|
||||
- Currently, `child.constructor` is pointing to the `Parent`. If we'd like to correct this, one option would be to do:
|
||||
|
||||
```js
|
||||
function Parent() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue