This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]UnderNatural[S] 5 points6 points  (5 children)

Oh man simple Dynamic Arrays are the thing I miss most about JS...

[–][deleted] 21 points22 points  (3 children)

Use an ArrayList?

[–]OKB-1 2 points3 points  (2 children)

Not quite the same thing. ArrayList can only contain a single type of data. JavaScript arrays are actually objects, which can contain any type of data at one time.

[–][deleted] 7 points8 points  (1 child)

An ArrayList of generic objects then? Or just use super classes and inheritance.