From d820b2a0cd0b9505932c2ba7dfd084ab438a04fe Mon Sep 17 00:00:00 2001 From: Niraj Nandish Date: Wed, 12 May 2021 22:25:05 +0400 Subject: [PATCH] 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) Co-authored-by: Nicholas Carrigan (he/him) --- .../add-methods-after-inheritance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`.