This figure again shows that every object has a prototype. Constructor function Foo also has its own __proto__ which is Function.prototype, a
__proto__
(function(){ let a = function(){console.log(this.b)}; a.prototype.b = 1; a.__proto__.b = 2; let q = new a(); console.log(a.b); console.log(q.b) })()
Try this code to understand