title: how to get access to newly added functions inside a javascript class
body: <p>If in a Javascript class there are few properties which are added initially and were available   through prototype.Now if some new properties or functions are added to the class ,how can they be accessed to all existing and newly created functions. Note that the class is not readily available to everyone.</p>
  
  <pre><code>function Foo(){
      this.name="";
      this.place="";
  }
  </code></pre>
  
  <p>In <code>House.js</code> i had used  <code>Foo.prototype=House();</code></p>
  
  <p>In <code>college.js</code> i had used  <code>Foo.prototype = College();</code></p>
  
  <p>now this Foo() is modified to</p>
  
  <pre><code>function Foo(){
      this.name="";
      this.place="";
      var books=function Books(){...some implementaion};
  }
  </code></pre>
  
  <p>What will happen if <code>House.books</code> before and after modification of the class.</p>