Understanding JavaScript Object(value) : <p>I understand that the following code wraps a number into an object:</p>

<pre><code>var x = Object(5);
</code></pre>

<p>I therefore expect and understand the following:</p>

<pre><code>alert(x == 5); //true
alert(x === 5); //false
</code></pre>

<p>However, I also understand that an object is a list of <strong>key/value pairs</strong>. So I would have expected the following to be different:</p>

<pre><code>alert(JSON.stringify(5)); //5
alert(JSON.stringify(x)); //5
</code></pre>

<p>What does the structure of x look like? And why does it not appear to be in key/value pair format?</p>
