Well, that puts an associative array under the form.
var tabla[];
tabla['nombre']='Jose';
my code is as follows:
var regs = [];
var usuario = [];
usuario['nombre'] = 'Jose';
usuario['dni'] = '45875458X';
regs[0] = usuario;
usuario['nombre'] = 'Fernando';
usuario['dni'] = '52487125G';
regs[1] = usuario;
var sx = regs[0].nombre;
var sy = regs[1].nombre;
console.log(sx);
console.log(sy);
When I show the data it turns out that the two registers in the regs array are identical, I have given it a thousand laps and I only get it with an array of objects