mulitple javascript files in one app
<p>Not really sure how to ask this, but I'm just looking for some insight/info.</p>

<p>If I'm including multiple JavaScript files in my app, how does the page/app see all the JS code. Does all the JS in all files become one-big JS file</p>

<p>If one JS file has a variable <code>foo=true;</code>  and another JS file has <code>foo=false</code>, what is the scope of <code>foo</code>?  Is it local to the script it is in or does it become seen in 'all' the js code?</p>

<p>Thanks for any insights.  </p>
