Number.prototype.sum=function(a){ for(i=0;i<a.length;i++){ this=this+a[i] }return this } temp=new Number() a=new Array(1,6,4,6,8,2,7,9,11); trace(temp.sum(a))