Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] "var" keyword


  • From: javascript@xxxxxxxxxx (Rodney Myers)
  • Subject: [Javascript] "var" keyword
  • Date: Tue, 23 Apr 2002 11:21:32 +0100

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