title: Javascript newbie function doubts
body: <p>I am learning some javascript and I never got the idea of what is the difference between creating a function like this:</p>
  
  <pre><code>var justMe = function(param1, param2) {
       code code code;
  };
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>function justMe(param1, param2) {
      code code code;
  }
  </code></pre>
  
  <p>And why in the second example is the semi-colon is not requiered at the end, like in the first example?</p>