javascript - can we have self invoking function modules assigned to variables
<p>Can variable be assigned self invoking function module so that the variable reference would trigger calling the function without the () operator. I want the variable to have the latest value based on the code in the function module.</p>

<p>the code could be </p>

<pre><code> count = 0
 var x = function(){ return count }();
 alert x; // should give 0
 count = 7
 alert x ; // should give 7
</code></pre>

<p>thanks</p>
