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 09afa929d8e..629d628b54c 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 +}