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:
@ -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`.
|
||||
|
Reference in New Issue
Block a user