Well, after much head scratching this afternoon; I came to realize why my array was coming back as undefined. Despite the word 'closed' not being a reserved JS word; it seems it is some kind of reserved word elsewhere and so an array cannot be called 'closed'.
My question is this; if Javascript isn't reserving this word - what is? The browser? The OS? I read that one should avoid using it as a naming convention for variables / objects but I don't understand what else is trying to use it.
Any insight would be much appreciated.
<html>
<head>
</head>
<body>
<script>
var greatArray = [];
var closed = [];
alert(greatArray.length);
alert(closed.length);
</script>
</body>
</html>