JavaScript and String as primitive value
<p>In JavaScript a String is a primitive value.
But is also a String object...
A primitive value is a value put directly into a variable.</p>

<p>So my question is:</p>

<pre><code>var d = "foo";
</code></pre>

<p>does d contain directly foo or a reference to a string object like other languages?</p>

<p>Thanks.</p>
