title: How to use prototype inheritance without the "new" operator
body: <p>So im trying to make objects that have prototype inheritance without the "new" operator using closures. 
  My code is: </p>
  
  <pre><code>var TABLE=function (tableId) {
  var table=(document.getElementById(tableId)||{}),
      colName=[],
      rows,
      cols,
      selectedRow;
  
  //private methods
  
      var updateRows=function(){
          //Code that updates the number of row of the table
      }
      updateRows();
  
  //Declare the public methods for the object
  
  var methods={
      prototype:{
          cols:function () {
          return cols;
          },
          rows:function () {
              return rows;
          }
      }
  };
      return methods;
  }
  
  var table=Table("Inventory")
  alert(table.rows()) //I get undefined
  alert(table.prototype.rows()) //I get the actual number of rows
  </code></pre>
  
  <p>What am i doing wrong? Do you think i could use some better way of coding for this</p>
  
  <p>I appreciate all the help. </p>