title: Is there a way to see how JavaScript creates Objects?
body: <p>I am working with is code:</p>
  
  <pre><code>var obj1 = new Object('some text'),
      obj2 = new Object(32);
  
  console.log(obj1 instanceof String);  // true
  console.log(typeof obj1); //object
  console.log(obj2 instanceof Number); // true
  console.log(typeof obj2); // object 
  </code></pre>
  
  <p>I am guessing that the <code>Object</code> function has a constructor that determines whether the newly created object is an instance of <code>String</code> or <code>Number</code></p>
  
  <p>I am really interested to see how it is done. Is it possible to see the Object function itself? Similarly how we - for example - can open up the jQuery library and see how it implements Ajax. </p>