which is effiecient in javascript, multidimensional array access or object access
<p>I need to store stock market data for manipulation. Which is more efficient,</p>

<p>1) STORING DATA AS MULTIDIMENSION ARRAY FOR OPEN,HIGH,LOW,CLOSE,date AS IN </p>

<pre><code>//Data array stored in a array
var tickdata = new Array();
tickdata.push([open,high,low,close,volume,date])
</code></pre>

<p>2) storing data as an object object as shown below</p>

<pre><code>function dailyData(open, high, low, close,volume,date)
{
   this.open = open;
   this.high = high;
   this.low = low;
   this.close = close;
   this.volume=volume;
   this.date=date;
}
var data = new Array();
data[0] = new dailyData(1017.50,1032.50 ,997.50, 1025.40,4187510,'07-Jan-2005');
</code></pre>
