title: Listing constructor properties vs prototype properties
body: <p>Is the following the correct way to retrieve properties that are defined in the prototype and those defined in the constructor?</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>function greet(name) {
      this.name = name;
  }
  
  greet.prototype.new = "New"
  greet.prototype.print = function() {console.log('Hi!', this.name)};
  let o = Object.create(greet.prototype);
  o.constructor("Bob")
  
  console.log('Prototype props:', Object.keys(Object.getPrototypeOf(o)));  
  console.log('Constructor props:', Object.getOwnPropertyNames(o));         </code></pre>
  </div>
  </div>
  </p>
  <p>Additionally, is there a more straightforward way to grab the prototype properties than doing <code>Object.keys(Object.getPrototypeOf(o))</code> ?</p>