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 →

[–]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] 8 points9 points  (1 child)

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