title: JavaScript function declaration difference
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname">JavaScript: var functionName = function() {} vs function functionName() {}</a>  </p>
  </blockquote>
  
  
  
  <p>What's the difference in declaration of this functions i know example one is the normal way to do it, why we need two and three?</p>
  
  <pre><code>function one(var1,var2) {
     alert("inside functtion one");
  }
  
  two = function (var1,var2) {
     alert("inside function two");
  }
  
  var three = function (var1,var2) {
     alert("inside function three");
  }
  </code></pre>