This question is a bit pedantic. You've been warned beforehand :)
I noticed something and I thought of sharing it with you. Let's get straight to it.
Since all functions are supposed to have a prototype property that's epicenter of the prototypical inheritance model in js, and since Function.prototype
is a function in itself, you'd expect to see a prototype
property on the prototype object that all functions in js get their methods and properties from by virtue of inheritance but nothing there.
Is there a logical explanation behind this decision to omit the prototype
on that particular function or it was dropped just for stylistic reasons since Function.prototype.prototype
might look ugly for some, or maybe the prototype
prop on the Function
constructor is like for the lack of a better term the god of all prototypes in js and thus can't have a prototype
property itself?
Looking forward to your answers.
Happy coding :)