title: Private function not returning value
body: <p>I have code as below.</p>
  
  <pre><code>var Main = function () {
      var a, b, c, d;
      a = 1;
      b = true;
      c = undefined;
  
      var _private = function () {
          return 'Function with Private acceess';
      };
  
      this.getPublic = function () {
          return 'Function with Public access';
      };
  
      this.getPrivate = function () {
          _private();
      };
  
  };
  
  var o = new Main();
  console.log(o.getPublic());
  console.log(o.getPrivate());
  </code></pre>
  
  <p>In the code above I am trying to access the private method of the <code>Main</code> object <code>o</code> through the public method <code>getPrivate()</code>.
  But in the console the result is </p>
  
  <pre><code>undefined
  </code></pre>
  
  <p>Why is the <code>_private</code> not returning the desired value?</p>