0
Why does this show [object Object] ?
function fem(number,who) { this.number=number; this.who=who; this.changeName = function(name) { this.name = name; }; } var a = new fem(2,"raxe and dedz"); a.changeName("Dedz"); document.write(a) why does it show [object Object]?
1 Answer
+ 1
nvm i found the solution its (a.name)