From 6f28548668271ad84d2b54cf12abe2c8f6082a8e Mon Sep 17 00:00:00 2001 From: Matheus Genteluci Date: Sun, 17 Mar 2019 21:19:21 -0300 Subject: [PATCH] Understand where an objects prototype comes from (#34643) * Understand where an objects prototype comes from - One hint and Solution added to index.md * Add original seed code --- .../index.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/object-oriented-programming/understand-where-an-objects-prototype-comes-from/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/object-oriented-programming/understand-where-an-objects-prototype-comes-from/index.md index 4637337860..ab45996ec4 100644 --- a/guide/english/certifications/javascript-algorithms-and-data-structures/object-oriented-programming/understand-where-an-objects-prototype-comes-from/index.md +++ b/guide/english/certifications/javascript-algorithms-and-data-structures/object-oriented-programming/understand-where-an-objects-prototype-comes-from/index.md @@ -3,8 +3,20 @@ title: Understand Where an Object’s Prototype Comes From --- ## Understand Where an Object’s Prototype Comes From -This is a stub. Help our community expand it. +### Hint 1 -This quick style guide will help ensure your pull request gets accepted. +* You should use isPrototypeOf() to complete this challenge. - +### Solution + +``` javascript +function Dog(name) { + this.name = name; +} + +let beagle = new Dog("Snoopy"); + +// Add your code below this line +Dog.prototype.isPrototypeOf(beagle); + +```