title: ES6 Javascript: Calling static methods from classes with arrow functions
body: <p>While this works as intended</p>
  
  <pre><code>class ClassWithStaticMethod {
  
    static staticMethod() {
      return ('staticMethod');
    };
  
    static staticMethod2() {
      const yee = this.staticMethod();
      return 'staticMethod2 '+yee;
    };
  
  }
  
  console.log(ClassWithStaticMethod.staticMethod2());
  //staticMethod2 staticMethod
  </code></pre>
  
  <p>This is,</p>
  
  <p>i) have access to the staticMethod() with the class name, and</p>
  
  <p>ii) this method can call another static method within the same class by using "<strong>this</strong>",</p>
  
  <p>This doesn't work</p>
  
  <pre><code>class ClassWithStaticMethod {
  
    static staticMethod = () =&gt; {
      return ('staticMethod');
    };
  
    static staticMethod2 = () =&gt; {
      const yee = this.staticMethod;
      return 'staticMethod2 '+yee;
    };
  
  }
  
  console.log(ClassWithStaticMethod.staticMethod2());
  //staticMethod2 undefined
  </code></pre>
  
  <p>In the sense, that I can still access to the staticMethod() method, but I am not able to access to the other method within the first method. I get undefined, and if I use</p>
  
  <pre><code>    const yee = this.staticMethod();
  </code></pre>
  
  <p>I get an error </p>
  
  <blockquote>
    <p>error TypeError: _this.staticMethod is not a function</p>
  </blockquote>