title: Unexpected token 'this' while creating method inside object
body: <p>I am creating an object and I continue to get the error message <em>unexpected token:this</em> when I add a method. Here's my code.</p>
  
  <pre><code>function Person(name,age,gender,job) {
      this.name = name,
      this.age = age,
      this.gender = gender,
      this.job = job,
      this.pSpeak = function() { 
          func.innerHTML = "My name is " + this.name + "&lt;br&gt;I am " this.age + "years old." + "&lt;br&gt;I am a " + this.gender + ".&lt;br&gt;My career is " + this.job +".";
          } //Object Method
      }
  
   var colin = new Person("Colin James",24,"man","Social Media Consultant"); // create a new Person.
  </code></pre>
  
  <p>I have read various articles about creating methods within objects and I don't see where I am going wrong here. When I remove the <code>this.</code> syntax from the <em>name, age, gender, job</em> variables in the method pSpeak, I get the error <em>Unexpected identifyer</em>.</p>
  
  <p>Any suggestions as to whats happening?</p>