Freeing JavaScript object
- by pion
I am looking at the example from http://www.javascriptkit.com/javatutors/oopjs.shtml
var person = new Object()
person.name = "Tim Scarfe"
person.height = "6Ft"
But there is no mention how to "free" it in order to avoid memory leak.
Will the following code free it?
person = null;
How do you free a JavaScript Object using "new Object()?
How…