[Javascript] "var" keyword

Rodney Myers rodney at aflyingstart.net
Tue Apr 23 05:21:32 CDT 2002


I agree. I never use delete. Much more important is the discipline of scoping
variables globally and locally as PPK suggests.

Local variables are in effect "deleted" when control leaves a function.

Also, when a page is replaced in a window or frame the variables that belonged
to it also disappear.

Rodney

Peter-Paul Koch wrote:

> As to delete, I never use it and I seem to remember Flanagan said it's not
> very important in JavaScript.
>
> ppk





More information about the Javascript mailing list