I find the behaviour of this piece of code puzzling, why is the constructor of child not Child? Can someone please explain this to me?
child
Child
The "constructor" property is a reference to the function that created the object's prototype, not the object itself.