man=Array();
man[0]=Array();
man[0][0]="30";
man[0][1]="40";
man[0][2]="50";
man[0][3]="50";
man[0][4]="40";
//---------------------------------------------------------
man[1]=Array();
man[1][0]="20";
man[1][1]="31";
man[1][2]="31";
man[1][3]="351";
man[1][4]="31";
//---------------------------------------------------------
man[2]=Array();
man[2][0]="123";
man[2][1]="123";
man[2][2]="51";
man[2][3]="190";
man[2][4]="87";
//---------------------------------------------------------
man[3]=Array();
man[3][0]="22";
man[3][1]="56";
man[3][2]="1000";
man[3][3]="220";
man[3][4]="100";
alert(man.map(val=>+val[4]).reduce((c,t)=>t+=c));
//alert(man.map(function(val){return +val[4];}).reduce(function(c,t){return t+=c;}));
/*var t=0;
man.map(val=>t+=+val[4]);
alert(t);*/
/*var t=0;
man.map(function(val){return t+=+val[4];});
alert(t);*/