Is it good to make function in function using 'return'? <p>While I was investigating functions, I realised that I can create embedded functions. Firstly, I thought it may be useful for structuring code. But now I suppose it isn't good style of coding. Am I right? Here is an example.</p> <pre><code>function show () { return function a() { alert('a'); return function b() { alert('b'); } } } </code></pre> <p>And I can call <code>alert('b')</code> using this string: <code>show()()</code>;</p> <p><strong>In what</strong> situations is better to use this method and in what not?</p>