Javascript clean var and save memory?

Status
Not open for further replies.

Porsche_maniak

Active Member
283
2009
0
40
Hi guys.
Sometimes i have really big vars that take a lot of memory.
I am nulling them like this ?

Code:
var myvar='some big stack';
myvar=null;

The thing is that i am not sure if that works.
Some people say that myvar=false or myvar=undefined will do the trick.
Any thoughts?

Thanks
 
3 comments
Status
Not open for further replies.
Back
Top