954[jslint] Re: Variable x was used before it was declared.
- Oct 2, 2009--- In firstname.lastname@example.org, Toby Maxwell-Lyte <toby.maxwelllyte@...> wrote:
> Thanks, it just seems logical to have constants at the top of theThey aren't constants. They are mutable properties of a function.
> What is the motivation behind this rule?Variables should be declared before they are used.
The function statement is a variable declaration.
- << Previous post in topic Next post in topic >>