title: scope of this for constructor function
body: <p>Can someone help me clarify the difference between thetwo ways of creating constructor function in javascript?
  Here is the code:</p>
  
  <pre><code>var globarcheck= this;
  var Car = function(color){
      this.color= color;
      /*this.prototype.Go = function()
      {
          console.log(this.color+" "+"Car going...");
      };*/
  };
  
  Car.prototype.Go= function(){
      console.log(this.color+" "+"Car going...");
  };
  var aCar = new Car("green");
  var bCar = new Car("yellow");
  aCar.Go();
  bCar.Go();
  </code></pre>
  
  <p>The above code works but why I can't use the commented out code to do the same to assign the Go method?</p>