<script> var A = function() {}; A.prototype.test = alert("hello"); var objects = new A(); alert(objects.prototype);//hello </script>