Login Register

destructors

delete command

I tried to run the following code:

var x = 10;
delete x;
alert ("x is "+x);

and got "x is 3". my questions are: why delete seems to not work? when are you expected to use it? is there a URL where I can find explanation about destructors in general?
Thanks!!

Syndicate content