title: What is the proper way to reference TypeScript class methods and properties from the constructor?
body: <p>I have a TypeScript class with a constructor. My goal is to change the "bar" property value by invoking the "baz" method inside the constructor. But, the baz method seems to have no effect. After the baz method is invoked, I'm expecting the bar property value to be "blue". Instead, the value remains "red". </p>
  
  <pre><code>class Foo {
    bar:string = "red";
  
    baz():void {
      this.bar = "blue";
    };
  
    constructor() {
      var bar = this.bar;
      var baz = this.baz;
      baz();
      console.log(bar) // logs "red";
    }
  }
  
  var x = new Foo();
  </code></pre>