function Manzanas(color){ //=tipo array() this.color=color; this.comer=function(){ this.pop(); } } var misManzanas=new Manzanas(rojas);