title: What is the purpose of setting "this.name = name;" in JavaScript?
body: <p>I'm not exactly sure why this is necessary. If I'm taking in a parameter of "name", why can't it be referenced as "name" without first setting it equal to "this.name"? </p>
  
  <p>Forgive my ignorance, I'm new.</p>
  
  <pre><code>function Animal(name, numLegs) {
      this.name = name;
      this.numLegs = numLegs;
  }
  
  Animal.prototype.sayName = function() {
      console.log("Hi my name is " + this.name);
  };
  </code></pre>