title: Javascript ES6(ES2015)/ Typescript: how to access local method inside static method
body: <p>I basically want to access the "foo2" method inside a static "bar" method, but so far I only able access "foo1" and "foo3" method only. Can anyone teach me how can I access the non static foo2 method.</p>
  
  <pre><code>let foo1 = () =&gt; {
      alert('foo1’);
    };
  
  class ABC extends Component {
  
    static bar() {
        foo1(); //can work
  
        foo2; //not work with error "Can't find variable foo2"
  
        foo2(); //not work with error "Can't find variable foo2"
  
        this.foo2(); //not work with error "this.foo2 is not a function"
  
        this.foo2; //no error but no alert, basically nothing happen
  
        ABC.foo3() //can work
    }
  
    foo2 = () =&gt; {
        alert('foo2');
    };
  
    static foo3 = () =&gt; {
        alert('foo3');
    };
  
  }
  
  module.exports = ABC;
  </code></pre>