Is there any way to create an array-like object in JavaScript, without using the built-in array? I\'m specifically concerned with behavior like this:
var sup
Sure, you can replicate almost any data structure in JavaScript, all the basic building blocks are there. What you'll end up will be slower and less intuitive however.
But why not just use push/pop ?