- You should use objects when you want the element names to be strings (text).
- You should use arrays when you want the element names to be numbers.
Avoid new Array()
Use  instead.
These two different statements both create a new empty array named points:
var marks = new Array(); // Bad
var marks = ; // Good