title: Cannot call a method from a Javascript ES6 constructor
body: <p>I have the following "class" definition:</p>
  
  <pre><code>class MyClass{
       constructor(name, surname, age){
           this.Name=name;
           this.Surname=surname;
           this.FullName=getName();
           this.Age=age;
  
       }
       getName(){
           this.FullName=this.Name+" "+this.Surname;
       }
  }
  let myClass=new MyClass("Jose","Suarez",22);
  </code></pre>
  
  <p>The thing is that when the constructor is executed the method getName is called and inside the method this.FullName has the right value, but when it jumps to the constructor again (this.Age), this.FullName becomes undefined.</p>
  
  <p>Could you explain me why doesnt keep the right value?</p>
  
  <p>Thanks a lot</p>
  
  <p>Jose. </p>