Freeing JavaScript object
<p>I am looking at the example from <a href="http://www.javascriptkit.com/javatutors/oopjs.shtml" rel="nofollow">http://www.javascriptkit.com/javatutors/oopjs.shtml</a></p>

<pre><code>var person = new Object()
person.name = "Tim Scarfe"
person.height = "6Ft"
</code></pre>

<p>But there is no mention how to "free" it in order to avoid memory leak.</p>

<p>Will the following code free it?</p>

<pre><code>person = null;
</code></pre>

<ol>
<li>How do you free a JavaScript Object using "new Object()? </li>
<li>How do you free a JavaScript Array allocated using "new Array(10)"?</li>
<li>How do you free a JavaScript JSON allocated using "var json = {"width": 480, "height": 640}"?</li>
</ol>

<p>Thanks in advance for your help.</p>
