title: Calling one prototype method inside another in javascript
body: <pre><code>var Ob = function(){
  
  
  }
  
  Ob.prototype.add = function(){
      inc()
  
  }
  
  Ob.prototype.inc = function(){
      alert(' Inc called ');
  
  }
  
  window.onload = function(){
  var o = new Ob();
  o.add();
  }
  </code></pre>
  
  <p>I would like to call something like this,how can i call, ofcourse i put <strong>inc</strong> as inner function to <strong>add</strong> I can do that but without having the inner function. how do i do that ?</p>