On Jan 15, 12:40 pm, Oleg Slobodskoi <[email protected]> wrote:
>
> 3. my personal preference: it looks much more structured and consistent if
> there are all declarations on the top. I can easier see all defined stuff
> and easier detect if there is something unneeded or dublicate or can be
> reused.
I sometimes just don't declare them with var but as parameters:
function (x) {
var a,b;
...
}
function (x, a, b) { ... }
--
Jorge.
--
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]