title: javascript base object to create 2 other objects with different methods
body: <p>I've been playing around with javascript for years, but I'm trying to get serious now.  Studying, and into Objects.</p>
  
  <p>I want to create a base object, and use it to create 2 other objects that are slightly different.</p>
  
  <p>I thought this would work :</p>
  
  <pre><code>function movingObject(x, y, z){
     this.x = x;
     this.y = y;
     this.z = z;
  }
  
  var positiveMover = new movingObject(x, y, z);
  positiveMover.prototype.move = function(a, b){
      yadda yadda
  }
  
  var negativeMover = new movingObject(x, y, z);
  negativeMover.prototype.move = function(b, a){
      adday adday
  }
  
  var pic = postiveMover(1, 2, 3);
  pic.move(20, 10);
  </code></pre>
  
  <p>I get a undefined error on the move.....pretty sure I've got the wrong idea. Any advice would be appreciated - links to information, or the right keywords to google</p>