diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md index a9650a8201..bc6aa77d26 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/object-oriented-programming/iterate-over-all-properties.md @@ -44,16 +44,16 @@ Add all of the `own` properties of `beagle` to the array `ownProps`. Add all of # --hints-- -The `ownProps` array should include `"name"`. +The `ownProps` array should only contain `"name"`. ```js -assert(ownProps.indexOf('name') !== -1); +assert.deepEqual(ownProps, ['name']); ``` -The `prototypeProps` array should include `"numLegs"`. +The `prototypeProps` array should only contain `"numLegs"`. ```js -assert(prototypeProps.indexOf('numLegs') !== -1); +assert.deepEqual(prototypeProps, ['numLegs']); ``` You should solve this challenge without using the built in method `Object.keys()`.