salve a tutti, ho un problema quando vado a creare dei metodi per la funzione costruttore tramite l'oggetto prototype. vi posto il codice:
-----------------------------------------------
function MakeMe(age, peso) {
this.age = age;
this.peso = peso;
}
persona = new MakeMe(33,88);
MakeMe.prototype.older = aggiungi;
function aggiungi() {
this.age += 10;
}
trace("il valore del metodo older per persona è "+persona.older);
--------------------------------------------

sulla finestra dell'output mi risulta:
il valore del metodo older per persona è [type Function]


non capisco perchè mi dice [type Function] e non 43(=33+10)


grazie 1000