From b758143cc5c06cd68796d0d85927d430871f201d Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Mon, 20 Feb 2017 17:59:07 +0100 Subject: [PATCH] fix(challenge): Typo in "OOP: Reset Inherited Constructor Property" --- .../object-oriented-programming.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json b/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json index 09afa929d8..629d628b54 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json @@ -773,7 +773,7 @@ "id": "587d7db1367417b2b2512b86", "title": "Reset an Inherited Constructor Property", "description": [ - "When an object inherits its prototype from another object, it also inherits the supertype’s constructor property.", + "When an object inherits its prototype from another object, it also inherits the supertype's constructor property.", "Here's an example:", "
function Bird() { }
Bird.prototype = Object.create(Animal.prototype);
let duck = new Bird();
duck.constructor // function Animal(){...}
", "But duck and all instances of Bird should show that they were constructed by Bird and not Animal. To do so, you can manually set Bird's constructor property to the Bird object:", @@ -1064,4 +1064,4 @@ "translations": {} } ] -} \ No newline at end of file +}