fix(curriculum): Update wording of test in 'Add Methods After Inheritance' (#42112)

* fix: Update wording of test in 'Add Methods After Inheritance'

* fix(curriculum): Correct grammar of test description

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>

Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
This commit is contained in:
Niraj Nandish
2021-05-12 22:25:05 +04:00
committed by GitHub
parent 1537354cf2
commit d820b2a0cd

View File

@ -58,10 +58,10 @@ assert(typeof Animal.prototype.bark == 'undefined');
assert(typeof Dog.prototype.eat == 'function');
```
`Dog` should have the `bark()` method as an `own` property.
The `Dog` prototype should have a `bark()` method.
```js
assert(Dog.prototype.hasOwnProperty('bark'));
assert('bark' in Dog.prototype);
```
`beagle` should be an `instanceof` `Animal`.