# JavaScript Object Inheritence, new() and prototype

**URL:** <https://forum.kirupa.com/t/javascript-object-inheritence-new-and-prototype/646731>\
**Category:** programming\
**Created:** [March 21, 2021, 10:15pm UTC](https://forum.kirupa.com/t/javascript-object-inheritence-new-and-prototype/646731 "2021-03-21T22:15:40Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [March 22, 2021, 5:21pm UTC](https://forum.kirupa.com/t/javascript-object-inheritence-new-and-prototype/646731/6 "2021-03-22T17:21:58Z")

</div>

@Belfry777 and I don’t know if this will be any help at all, but here’s a “tip” I did walking through object inheritance and use of prototypes. Its difficult to explain succinctly, and I’m not confident I did a good job at it, but maybe it can help 😉

> [@JS Tip of the Day: The Deal With Prototypes](http://forum.kirupa.com/t/js-tip-of-the-day-the-deal-with-prototypes/643123):
>
> The Deal With Prototypes Level: Beginner Prototypes in JavaScript are objects that other objects look to when they can’t find properties that are being requested of them. If the object doesn’t have the property itself, it can instead use the value of that property in its associated prototype. You can set the prototype for an object using Object.setPrototypeOf(). let me = {}; let friend = { answer: 42 }; console.log(me.answer); // undefined Object.setPrototypeOf(me, friend); // (me's protot…

---

_[View the full topic](https://forum.kirupa.com/t/javascript-object-inheritence-new-and-prototype/646731)._
