call a function in javascript as global function
<p>I have a main function in javascript that is function a() { some code here } and I also have a child function in this main function that looks like</p>

<pre><code>function a() {

    function b() {

        // some code here
    }

}
</code></pre>

<p>now I want to call the function b directly. then how to do this.</p>
