Namely, how does the following code:
var sup = new Array(5); sup[0] = \'z3ero\'; sup[1] = \'o3ne\'; sup[4] = \'f3our\'; document.write(sup.length + \"
If you're intending to implement objects with array-like access, the Array Mozilla dev center article is a great resource. Unfortunately I don't know the in depth details of Array implementation but there are a lot of details in that article.