title: Why does the greet function not return the expected value?
body: <p>Question:</p>
  
  <p>Why does the greet function not return the expected value?</p>
  
  <p>Code:</p>
  
  <pre><code>function Person(name){
      this.name = name;
  }
  
  Person.prototype.greet = function(otherName){
       return "Hi" + otherName + ", my name is " + name;
  }
  </code></pre>
  
  <p>How do I answer this? I create a new person then what do I do?</p>
  
  <pre><code>var John = new Person("John");
  </code></pre>