I started learning JavaScript and have below question:
var f = function foo() {}
Console.log(f.__proto__ === Function.prototype) //true
Console.log(f.__proto__ instance of Function) //false
Why 3rd statement using instanceof returns false. My understanding is RHS of instance consults prototype of passed class and then match it in object or its proto. Please let me know what I am missing here? referred this for implementation of instance-of.