Recibo el error TypeError: no se pueden establecer propiedades de indefinido y no estoy seguro de por qué.
let studentName = ""; var ID; let studentClass; let faculty=""; IDarray = [[studentName , ID , studentClass , faculty]]; // <--defined hereLuego, en este punto a continuación, la matriz está en un bucle for y las variables 'por ejemplo, nombre del estudiante' tienen valores.
for(let i = 0; i < 2; i++){ *...variables with their values...* IDarray[i][0] = [studentName , ID , studentClass , faculty]; //<--throwing error?!? }Estaba asignando valores mal. forma incorrecta fue
IDarray[i][0] = [studentName , ID , studentClass , faculty];la forma correcta era"
IDarray[i] = [studentName , ID , studentClass , faculty]; <-- cus this thing is the [0] array