JS OOP constructor prototype , . / . ., , .
, ( .constructor.prototype), Object, , function a(){} constructor prototype a. a; Chrome :
> function a(){}
undefined
> a.constructor.prototype
function Empty() {}
> a.constructor.prototype = Object.prototype
Object
> a.constructor.prototype
function Empty() {}
, , . .constructor.prototype, . , , , .constructor.prototype .__proto__:
function a(){}
b = new a();
b.__proto__ === Object.prototype;
b.__proto__.__proto__ === Object.prototype;
, __proto__ , ES5 :
obj.__proto__ === Object.getPrototypeOf(obj);
, .__proto__ .