I'm currently studying javascript prototype and inheritance (man, it is confusing, but soldiering on)
function MyFunc(){}
I have noticed that there is a constructor
property on both MyFunc
and MyFunc.prototype
I know that MyFunc.prototype.constructor
is pointing back to MyFunc
, but I'm not exactly sure where Myfunc.constructor
is pointing to?
So where does MyFunc.constructor
is pointing to and what is its uses?