Devolper C does this:


<script type="text/javascript">
Array.prototype.add = function(){
for(i=0,a=0;i<this.length;i++){
a += parseInt(this[i]);
}
alert(a);
};