I want to create an array in javascript and remember two ways of doing it so I just want to know what the fundamental differences are and if there is a performance differenc
I think both ways are the same in terms of performance since they both create an "Array object" eventually. So once you start accessing the array the mechanism will be the same. I not too sure about how different the mechanisms to construct the arrays be (in terms of performance) though it shouldn't be any noticeable gains using one way to the other.