The assignment of your status
variable, clashes with the window.status
property.
Chrome simply refuses to make the assignment.
The window.status
property, sets or gets the text in the status bar at the bottom of the browser.
I would recommend you to either, rename your variable or use an anonymous function to create a new scope, also remember to always use var
for declaring variables:
(function () {
var status = [];
for (var i = 0; i < 8; i++)
status[i] = false;
alert(status.length);
})();