How to declare variables for another function without passing it as argument of other function?
<p>I want to know how can i do it?</p>

<p>e.g.</p>

<pre><code>function get() {
   alert(s);
}
function declare() {
   var s = "Blah";
   get();
}
</code></pre>

<p>But I get that <code>s is not defined</code>.</p>

<p>I know we can do by passing it as argument and also setting it as global variable but how without both of them?</p>
