reference datatype javascript
<p>From what i can infer from these 2 sources:</p>

<p><a href="http://docstore.mik.ua/orelly/webprog/jscript/ch03_12.htm" rel="nofollow">Source 1</a> and <a href="http://stackoverflow.com/questions/3907613/how-is-a-javascript-string-not-an-object">Source 2</a> </p>

<p>is that in javascript when a primitive datatype is used in the context of the object, it is internally converted to an object. But this is just a <strong>temporary conversion</strong> in that the object will be removed from memory after it is used.</p>

<p>My question is what is the <strong>advantage of using such an approach?</strong> Is it to just save memory? or is there any other advt.? </p>
