title: Javascript function with some input and output
body: <p>There is a javascript question which was in an interview today for me. Can someone please help me understand the output of the question. Please note, I vaugley remember the correct syntax of code snippet given but I am sure you understand here what would be the question like. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Function(x) {
    return (y) {
      return x + y;
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Question 1 - What is the output of Function(5)(6)</p>
  
  <p>Question 2 - What is the output of Function(4)</p>
  
  <p>Question 3 - What is the output of Function(7)</p>