Js Variable Reference Quickie
<p>Hoping someone can clear this up for me.</p>

<p>Let's say I have 2 globals:
var myarray=[1,3,5,7,9],hold;</p>

<p>and then I do this:</p>

<pre><code>function setup()
{
alert (myarray[0]);//shows 1
hold=myarray;
alert (hold);//appears to show 'hold' containing all the values of myarray. first number shown is 1
myarray[0]=2;
alert (hold);//shows the values of myarray with the updated first entry. first numbe shown is 2
}
</code></pre>

<p>Am I to take it that 'hold' is simply keeping a reference to myarray, rather than actually taking all the values of?</p>
