How do you perform operations on an existing closure?
<p>Creating the closure is easy but using it is confusing for me. Here is my closure. Once I have it I need to be able to call operations on it like doWork, calculateThis, doAnimation, etc.  but there doesn't seem to be a way to access functions inside the closure. </p>

<pre><code>function worker(input) {
    return function () {
        doWork = function () {
             alert("doing work");
        };
    }
}

function caller() {
    var myWorker = worker();
    myWorker.doWork(); // this fails
}
</code></pre>

<p>*The question you're asking appears subjective and is likely to be closed. - Thanks again stackoverflow </p>
