I'm currently studying javascript prototype and inheritance and have come up with the following code
> Array.constructor === Function;
< true
> Function.constructor === Function;
< true
I couldn't get why Array.constructor is pointing to Function and why Function.constructor is pointing to Function? What is the reason behind it? Why did the creator of javascript made it the way it is?
Arrayis a function and its constructor isFunction?Functionis also a function and its constructor is alsoFunction...