I need to store data in an array that is inside a json, that is, I will have several users that will have data
let nombresUsuarios={
datos:[{nombre :''},
{acierto:''},
{fallo :''}]};
how to fill it?
my intent is:
for (var i = 0; i < rows.length; i++) {
nombresUsuarios.datos.nombre=rows[i].nombre;
nombresUsuarios.datos.acierto=rows[i].dato1;
nombresUsuarios.datos.fallo=rows[i].dato2;
};
but it does not fill anything, how do I do it?