I am wondering whats the difference between inheritFrom and the prototype when defining inheritance in Javascript.
function classA{}
classA.name="abc";
classA.functionName=function(){
alert("Function Name Alert");
}
function classB{ }
Whats the difference in the below codes?
classB.prototype=classA();
and
classB.prototype.inheritFrom(classA);