title: JavaScript inheritance with Object.create()?
body: <p>How do I inherit with the Object.create()? I tried these, but none are working:</p>
  
  <pre><code>var B = function() {};
  var A = function() {};
  A = Object.create(B);
  A.prototype.C = function() {};
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var B = function() {};
  var A = function() {};
  A.prototype.C = function() {};
  A = Object.create(B);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var B = function() {};
  A = Object.create(B);
  var A = function() {};
  A.prototype.C = function() {};
  </code></pre>
  
  <p>Nothing worked. How am I supposed to use this new Object.create()-function?</p>