access of an array inside another array in javascript
<p>i have two arrays defined like these</p>

<pre><code>var theory= new Array();
var first;
var second;

function arrTheory () {
    this.first= first;
    this.second= second;
}

var subject= new Array();
...
function arrSubject () {
    ...
    this.theory= theory;
    ...
}
</code></pre>

<p>how can i access to the elements in the theory array inside the bigger one?
I've tried</p>

<pre><code>subject[0].theory.first;
</code></pre>

<p>but it doesn't work while</p>

<pre><code>subject[0].name;
</code></pre>

<p>which is another field of the big array works fine. what i've missed?</p>
