title: Overriding behavior of inner function in javascript
body: <p>I want to override an inner function in javascript. Here is the code:</p>
  
  <pre><code>function Menu(x, y, z) {    
    this.createMenu = function(x, y) {
      //Some functionality
    }    
  }
  </code></pre>
  
  <p>I want to override the createMenu function without overriding the complete Menu function. Is there any way to do so.</p>