temporal = student[i].split(","); for(j=0;j<temporal .length;j++) temporal_2[j] = parseInt(temporal[j]); data[i] = temporal_2;