I'm new to web-development, coming from C/C++/x86. For all my efforts to circumvent it, it appears as though I'll need to use Javascript (surprise!).
Well, if I'm going to have to use it, I might as well understand whats going on. This has been difficult, since I'm used to being able to easily map C/C++ down to x86/x86_64 to figure out what's happening. Not to mention, Javascript is an entirely different paradigm to get accustomed to.
So, what is this prototype keyword, and how is this prototypical inheritance implemented?
After reading a few highly touted books and guides, I'll I've seen is examples. Every object (save the global object) has a prototype, which is another object. There has to be a very simple mechanism operating in the background on how these all these objects are linked.
I don't need to hear any more of "a new object inherits the properties of an old object" wishy-wash stuff you tell 12 year olds. For example, I know how C++'s virtual table works to understand how virtual functions work - everything makes perfect sense.
So, how does does Javascript use prototyping?
Thank you.