title: Is defining every variable at the top always the best approach?
body: <p>I've heard that it is a good technique to define your variables at the top of a function, so you don't end up with variable hoisting problems. This:</p>
  
  <pre><code>// Beginning of file
  
  function something(){
      var a, b, c = 1, d, e;
      // Do something
  }
  
  // End of file
  </code></pre>
  
  <p>is a good example (excluding the bad variable names, of course).</p>
  
  <p>My question is: Is this always the best approach? What if you are working with a lot of variables? Should they really all just be plopped on one line?</p>