On Wed, Apr 27, 2011 at 11:03 PM, Allex <allex_w...@163.com> 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/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to