Javascript inheritance : How prototype chain works between native prototypes
问题 As we know everything in Javascript inherits from Object : So if I create an object using constructor function like below: function Rabbit() { this.color = 'White' } let obj = new Rabbit(); alert(Rabbit.__proto__ === Function.prototype) //true alert(obj.__proto__ === Rabbit.prototype) //true alert(obj.__proto__.__proto__ === Object.prototype) //true alert(Function.__proto__ === Object.prototype) //false alert(Object.getPrototypeOf(Function) === Object.getPrototypeOf(Object)) //true The first