title: Where are a JavaScript's class' instance methods stored?
body: <p>Given:</p>
  
  <pre><code>var car = class Car{
      drive() {}
      park(){}
  }
  </code></pre>
  
  <p>Given car, how can I find what methods this class has,
  ie "drive" and "park" ?
  I would have thought they were on</p>
  
  <p>car.prototype</p>
  
  <p>It's true that </p>
  
  <pre><code>car.prototype.drive
  </code></pre>
  
  <p>returns the method
  and </p>
  
  <pre><code>car.prototype.hasOwnProperty("drive") =&gt; true
  </code></pre>
  
  <p>but</p>
  
  <pre><code>for(let prop_name in car.prototype){
      console.log(prop_name)
  }
  </code></pre>
  
  <p>prints nothing.</p>