From 29c00c8e7399c3d604c642402711e3e5b23ab1a4 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/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json b/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json index 09afa929d8..629d628b54 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/object-oriented-programming.json +++ b/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 +}