ackvonhuelioLvl 41
- Edited
DragonFireGames
could it just be
function rect(w,h){
this.w = w;
this.h = h;
}
rect.prototype.area = function(){
return this.w * this.height;
}
and
var something = new rect(50,50);
?
what i'm saying is i don't really understand why you needed var obj = {};