Using variables in function
<p>I am learning javascript and i use jquery framework for some learning...
please can someone explain to me how to use this sample to alert byebye instead of hello</p>

<p>better question will be how to change var msg in function change</p>

<pre><code>var msg = 'hello';
function change() {
msg = 'byebye';
}
alert(msg);​
</code></pre>
