title: Function expression ending with ; vs. not
body: <p>When reading others code I have seen functions written both ending with a semi-colon and not ending with a semi-colon.</p>
  
  <p>with: </p>
  
  <pre><code>var testFunction = function() {
    // magic happens here
  };
  </code></pre>
  
  <p>without:</p>
  
  <pre><code>var testFunction = function() {
    // magic happens here
  }
  </code></pre>
  
  <ul>
  <li>?: Is one more "technically" correct than the other?</li>
  <li>?: Is there a speed advantage to one?</li>
  <li>?: Do browsers not care and so it's just a style bleeding over from another language or an old format that used to be required for JavaScript functions?</li>
  <li>?: #{question I hadn't considered to ask here but you think I should have}</li>
  </ul>
  
  <p>Update: I also found this very useful => <a href="https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope" rel="noreferrer">https://developer.mozilla.org/en/JavaScript/Reference/Functions_and_function_scope</a></p>