Estoy tratando de hacer algo realmente simple: inicializar una matriz en Javascript. Y no funciona en Google Chrome. Aquí está el código:Inicialización de matriz JavaScript simple no funciona en Chrome
status = [];
for(i=0; i < 8; i++)
status[i]=false;
alert(status.length); //It says 0 when it should say 8
¿Qué ocurre?
Doh! Window.status es una propiedad. Cambiaré el nombre de la variable. ¡Gracias! – tinkerr