title: What's the difference between a function constructor and prototype constructor?
body: <p>I would like to know what the difference between this</p>
  
  <pre><code> MyClass = function() {};
   MyClass.prototype.Foo = function();
  </code></pre>
  
  <p>and this</p>
  
  <pre><code> MyClass = {};
   MyClass.prototype.constructor = function() {};
   MyClass.prototype.Foo = function();
  </code></pre>
  
  <p>when it comes to declaring the constructor function for a prototype in JavaScript.</p>
  
  <p>What is the advantage in using <code>prototype.constructor</code> over a regular function?</p>