Why console don't show methods of jQuery object returned from selector?
I know that if I type: $('body'); I get a jQuery object. However on chrome's console I'll only see the internal array of the jQuery object, despite the fact that jQuery methods are accessible like $('body').hide(); Why the console don't show me all the accessible methods and how did jQuery manage to do this magic? If it's just because these methods are defined on a prototype, then how come when I write these lines: function Person(){this.myProp = 'test'}; var person = new Person(); Person.prototype.proto = 'test2'; and then I inspect person in chrome I will see: __proto__: Person constructor: