JavasScript: Why does my_array.length not work?
<p>Version 1:</p>

<pre><code>var spamfoo = new Array();
spamfoo.push(['name', 'url']);
spamfoo.push(['dog', 'cat']);
alert(spamfoo);
// Alerts: name,url,dog,cat
alert(spamfoo.length);
// Alerts: 2
// ??? (shouldn't this be 4?)
</code></pre>

<p>Version 2:</p>

<pre><code>var spamfoo = new Array();
spamfoo.push(['name', 'url']);
spamfoo = spamfoo + ['dog', 'cat'];
alert(spamfoo);
// Alerts: name,url,dog,cat
alert(spamfoo.length);
// Alerts: 15
// ??? (this one I wasn't sure about anyways because I didn't know if you could add an array)
</code></pre>

<p>How is this possible? Doesn't <code>['value', 'value']</code> make an array and doesn't?</p>
