var namex=new Array(); function sample(){ var sub=new town(); sub.faststep(); namex=sub.namex; $("#memo").html(namex[5]); }