Array attribute of an object
<p>In a non-array attribute of an object:</p>

<pre><code>function myObj()
{
  this.code = "code";
  this.name = "name";
}
</code></pre>

<p>I can retrieve their values using:</p>

<pre><code>  myCode = myObj.code;
</code></pre>

<p>or:</p>

<pre><code>  myCode = myObj["code"];
</code></pre>

<p>With arrays:</p>

<pre><code>function myObj()
{
  this.code = ["code1","code2"];
  this.name = ["name1","name2"];
}
</code></pre>

<p>I have to to get "code2" so my syntax should be:</p>

<pre><code>  myCode = myObj.code[1];
</code></pre>

<p>Now my problem is, how can I get "code2" using the other way (the one the uses braces and the attribute enclosed in braces)?</p>
