G
gg9h0st
function aa() {};
var bb = new aa();
var dd = new function cc() {};
aa.prototype.rr = 100;
cc.prototype.rr = 100;
---------------------------------------------------------------
i wrote the code above that makes two functions and two object for
those.
bb(object)->aa(function),
dd(object)->cc(function).
i think it's all the same way to make an object for a function.
but if u try to debug,
bb object has rr right after "aa.prototype.rr = 100" statement
but dd deosn't have rr variable.
isn't dd obj refer to cc?
can anyone explain it why?
thanks in advance.
var bb = new aa();
var dd = new function cc() {};
aa.prototype.rr = 100;
cc.prototype.rr = 100;
---------------------------------------------------------------
i wrote the code above that makes two functions and two object for
those.
bb(object)->aa(function),
dd(object)->cc(function).
i think it's all the same way to make an object for a function.
but if u try to debug,
bb object has rr right after "aa.prototype.rr = 100" statement
but dd deosn't have rr variable.
isn't dd obj refer to cc?
can anyone explain it why?
thanks in advance.