title: Can a private method of a JavaScript class be accessed dynamically?
body: <p>Suppose I have a class in Javascript as follows:</p>
  <pre><code>class T {
     #p() {
     }
     a(s) {
       this['#'+s]();
     }
  }
  t = new T();
  </code></pre>
  <p>My intention is that when I call <code>t.a('p')</code>, <code>#p</code> would be called in return. However, this doesn't work, and a debug shows that <code>this['#p']</code> is undefined within <code>a</code>. Public methods work fine using this method, so I was wondering if there is anyway to invoke a private method within a class method based on its name dynamically.</p>
  <p>Thanks!</p>