diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance.md index 0d5df49cc5..33a5ab2895 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/add-methods-after-inheritance.md @@ -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`.