I'm new to JavaScript coming from a Java background. I have difficulty understanding the following behavior.
console.log(Object.constructor.name); // prints Function.
console.log(Object instanceof Function); // prints true since Object's constructor is Function.
So that means Object is an instance of Function.
console.log(Function instanceof Object); // prints true
How can Function be an instance of Object if Object is an instance of Function?
I ran the code in the latest Google chrome browser.