How would I update a variable everytime a window is resized using jQuery?
<p>How would I update a variable in another function every time a window is resized?</p>

<p>The code is as follows:</p>

<pre><code>$(window).resize(function() {                
    Here is the NewVarialble;
});


(function (a) {
    OldVariable;
    Want to update the OldVarible with NewVariable;
})(jQuery);
</code></pre>
