title: What is causing the syntax error I see in Firefox developer console?
body: <p>Attached is a screenshot of the developer console. I see a syntax error in a closure definition.</p>
  
  <p><img src="https://i.stack.imgur.com/RVBFK.jpg" alt="JavaScript syntax error"></p>
  
  <p>I've a JavaScript file, which has the following function. I'm loading the JavaScript file from another function and calling <code>sampleFunction()</code> from it.</p>
  
  <pre><code>var sampleFuntion=function(obj){
      //Statement here;
  };
  </code></pre>
  
  <p>But Firefox shows a syntax error for the first line, which is the function declaration/definition.</p>
  
  <p>I'm using Mozilla Firefox 29.0.1 on Windows 7.</p>
  
  <p>What is the actual error in the code?</p>