I have a multidimensional array in javascript as the code below:
var solidos = [];
solidos[0] = [];
solidos[0].push({
nome: 'Octaedro regular',
dimensoes: 'Aresta = 100mm',
material: 'Placa de alumínio',
tempo: '2 horas',
maquinario: 'Dobradeira e Morsa',
imagem: 'octaedro.gif'
});
When I give a alert in some element of the array, it returns me 'undefined'. Why?
alert(solidos[0].nome);
Results: undefined