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:
Shaopeng (Chris) Lin 2023-04-11 02:14:54 -04:00 committed by GitHub
parent 9079454996
commit 7fe6ec7118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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() {