Howdy! This post is what I like to call a "curtain peak" in other words an attempt to demonstrate how the prototype inheritance pattern can be implemented.
In this case I have a main parent character function or i.e a class in ES6. Essentially the objects which instantiate this class inherit various properties and methods.
I wont really go into the inner guts of what prototypes are in JS and what real purpose they serve.
If you would like to read more on the topic I'm sure there is plenty of content here on dev.to and I have also provided a link below to the MDN docs where they describe in further details this topic.
Nevertheless I hope this demo can give you somewhat a basic understanding on the subject of inheritance and the prototype chain.