Clean scope

Douglas Crockford douglas at crockford.com
Wed Aug 17 11:48:36 PDT 2011


On 11:59 AM, John J Barton wrote:
> JavaScript's ability to close over variables in nesting scopes
> sometimes surprises me. I'd like to be able to say "function uses a
> clean scope". Is there something like this in the works? Or maybe it
> exists?
>
JSLint produces a report that indicates which variables are global, 
local, inner, or closure.
That way you won't be surprised.


More information about the es-discuss mailing list