0

I define an object using function

AAA = function ( x) {
    this.x = x || 0;
};

Then I created on object using

 var a = new AAA();

If I am using a.prototype, I get "undefined". I can only use AAA.prototype to access the prototype property, I would like to know why?

Adam Lee
  • 24,710
  • 51
  • 156
  • 236

0 Answers0