I'm looking at trying the following code:
var classA = function() {};
classA.prototype = { x: 4, y: 6 };
classA.prototype.prototype = { z: 10 };
var foo = new classA();
alert(foo.z);
Why does the alert come back as undefined? Shouldn't javascript follow the prototype chain to find z?