I wanted to delve into the language-specific construction of the "prototype" javascript. And here is my training code:
var f = function() {}; f.ext = 1; f.prototype.pext = 2;
When I debug this code now with firebug, I get the following: 
Where does this endless nesting come from? Let it start from above (OK = unterstood):
f (OK)
- ext (OK)
- prototype (OK)
- pext (OK)
- constructor (I'm stuck at this point)
Whose constructor is this? And why do we have this infinte nesting?
source share