title: JavaScript Space After Function
body: <p>I know that white space is irrelevant in JavaScript, but I am curious about style.</p>
  
  <p>When defining a function like:</p>
  
  <pre><code>function Foo(a, b, c) {}
  </code></pre>
  
  <p>I do not put a space after the function name. But, if I am creating a function as an expression:</p>
  
  <pre><code>Bar(function (a, b, c) {
      // do something
  })
  </code></pre>
  
  <p>or</p>
  
  <pre><code>{
      Foo: function (a, b, c) {
          // do something
      }
  }
  </code></pre>
  
  <p>I find myself naturally typing a space. I think this is because I've trained myself to type a space immediately after the function keyword (or keywords in general). However, depending on the context, space can look awkward. What makes more sense? what do most people do?</p>
  
  <p>Sorry if this has been asked before; I didn't see it come up.</p>