title: Javascript - Anonymous Functions
body: <pre><code>var add= function(x,y) {
      document.write (x+y +&quot;&lt;br&gt;&quot;)
  }
  add (4,5)
  document.write (add(6,7))
  </code></pre>
  <p>Output:</p>
  <pre><code>9  
  13  
  undefined  
  </code></pre>
  <p>why the undefined is coming</p>