title: In OPP JS can you access a method declared inside a prototype function from the constructor?
body: <p>I'm reading about OPP js and while going over an example and was wondering if in:  </p>
  
  <pre><code>function Person(name){
      this.name = name;
  
  }
  
  Person.prototype.sayName = function(){
  
          var tempName = this.name;
  
          var saySomething = function(){
  
              console.log(tempName);
  
      }
      //return saySomething();
  }
  
  var person1 = new Person('chris');
  </code></pre>
  
  <p>is theres a way to fire the saySomething method from the constructor.
  eg.</p>
  
  <pre><code>person1.sayName().saySomething() //which doesnt work obviously
  </code></pre>