Issue while Accessing a Global variable in Javascript
<p>I am unable to access NatArray[ ] in the second function, and u4count in the second function is coming as 0. What may be the reason?</p>

<pre><code>&lt;script type="text/javascript"&gt;

var NatArray = [];
var NatArrayloc = [];
var u4count = 0;

function Check1()
{
NatArray[0] = 202116108;
NatArrayloc[0] = 202116109;
NatArray[1] = 202116111;
NatArrayloc[1] = 202116112;
NatArray[2] = 202116113;
NatArrayloc[2] = 202116114;
u4count = 3;
}
function Check()
{
 alert("coming here" + u4count + "natentry" + NatArray[0] );
}
&lt;/script&gt;
</code></pre>

<p>Thanks in Advance</p>
