The following JavaScript code is very confusing to me. Could anyone help me understand. Why does PersonY not have prototype property.
PersonX = function(){};
That's because it is actually a object instantiated in memory as a copy of the function; the prototype really only has meaning in the context of a creation of the instance, so once it is created, there is no logical construct for what that means.