On Wed, Apr 27, 2011 at 11:03 PM, Allex <[email protected]> wrote:

> Hello, i want to consult some issues of javascript language,  whether
> we need manually set some local variable (create by var xxx) to null?
>

As usual, "it depends". But for most cases you don't. At the end of a
function, all variables are destroyed. So you don't have to do it. The edge
case where "it depends" could be a closure. But my suggestion is not to
worry about that too much right now.

- peter

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to