1 drop the following array Filter Chinese characters and retain the number
2 for circular Filter assignment to C
3 for the maximum value
data Code:
var arr_db = [
["",400],
["",375],
["",377],
["",322]
];
Filter text, extract text:
function num(arr){
var ayy = [];
for (var i=0;i<arr.length;iPP) {
ayy +=parseInt(arr[i][1])+",";
}
return ayy;
};
var wanju = num(arr_db);
the number extracted is: 400375377322
find the maximum:
document.write(Math.max.apply(null,wanju));
Why is the output NaN?