console.log(Function instanceof Object);//true
console.log(Object instanceof Function);//true
This code is taken from article : https://github.com/stevekwan/experiments/blob/master/javascript/object-vs-function.html
I guess I understand what is prototypal inheritance and how Js object model works, but this circular links between two basic hmm.. probably constructors(which is functions which is objects .. and all objects are instance of Object constructor...) Function and Object just blow my mind.
In class-oriented languages i can imagine that there is some basic class Object, and every class i make is automatically inherits from it.
For me there is time consistency - class Object appears at first, then everything else i wrote appears at second etc. I don't really understand how two constructors magically appear at the same time and are instances of each other.
