title: Create an Object based on an existing object
body: <p>I'm new to Prototypal inheritance and I've been stuck in an easy task</p>
  
  <p>I have something like this:</p>
  
  <pre><code>var test1 = {
         clear : function () { 
           alert('hey');
         } 
  
   }
  
   var test2 = {
         varB : 2
  
   }
  </code></pre>
  
  <p>I would like to test2 extend from test1. 
  Can anyone give me a direction? Should I still  use Object.create, or maybe a function + call method?
  Im a bit confused here.</p>
  
  <p>Every example that i found are based on extending and then setting attributes, methods, etc.. But my object is already declared here.</p>
  
  <p>Thanks! </p>