var A = function() {}; A.prototype = {test: function() {}}; var object = new A(); alert(object.prototype); // undefined