reference datatype javascript
<p>In javascript, what is the difference in applying a toString() method to the primitive datatype, number like this</p>

<pre><code>var myString = myNumber.toString();
</code></pre>

<p>and applying the same toString() method by creating a reference datatype equivalent, the Number class like this </p>

<pre><code>var numberObject = new Number(myNumber);
var myString = numberObject.toString();
</code></pre>
