I'm studying/making personal notes on JavaScript again from scratch and bump into a few things for which I'd like some explanation.
Can someone explain this:
Object.prototype.hasOwnProperty("__proto__"); //True
Object.prototype.__proto__; //null
Object.hasOwnProperty("__proto__"); //False
Object.__proto__; //function(){}
Why does it say that Object doesn't have own property __proto__, and what is the function that it outputs on the last line?
Edit: the below part has been solved here: Why in JavaScript both "Object instanceof Function" and "Function instanceof Object" return true?
Additional question, why are the following statements both true?
Function instanceof Object //True
Object instanceof Function //True
FunctionandObjectare both functions (“constructors” so to say), and also both objects, because all functions are objects.