title: How many Vars is too many in JS?
body: <p>I have a page I am building, and our solution to a problem involved wrapping some code inside a function then calling that when required.</p>
  
  <p>Now the page is growing, and each item has its own function. According to D. Crockford each function is put in a VAR anyway so:</p>
  
  <pre><code>function functionName(){}
  </code></pre>
  
  <p>is equivalent to:</p>
  
  <pre><code>var var1 = functionName(){}
  </code></pre>
  
  <p>So now we have LOTS of vars in the page (I have also written them specifically in the latter format as Mr. Crockford promotes) and I am getting worried this creates too many variables (not sure this will cause any issues, performance or otherwise). I am thinking of making a single Object Literal and adding each function as a value to a key. This I think will reduce all these vars into a single manageable unit and reduce the amount of variables I am using (and avoid any potential issues) - or will it?</p>
  
  <p>Thanks!</p>