I am interested in learning more about the performance attributes of untyped JavaScript arrays, given that they are not homogenous. I wonder how this is handled internally.
For instance, if I were to have a number and an arbitrary object in an array, would they be stored sequentially in memory? Are all primitive data types boxed, with the array simply containing pointers to each element? Is this behavior determined by the VM's implementation?