title: Calling a method from another method in the same class
body: <p>Why am I getting the error: "Uncaught TypeError: self.myTest is not a function"? How do I call a method from within another method in a javascript class?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>class MyClass {
  
      myTest() {
        console.log('it works');
      }
  
      runMyTest() {
        self.myTest();
      }
  
  }
  
  var myClass = new MyClass();
  myClass.runMyTest();</code></pre>
  </div>
  </div>
  </p>