// declare all of your var's before using them..
While I initially agreed with this, as it seems nice and neat, I spotted a problem with it when it gets big. As you get a really big script and more people working on it, chances are that you will get someone to forget to declare a var in the beginning of the function, hence making it global.
So I came up with a (not so revolutionary) way of avoiding this and I am curious what you think of it?
// continue with a comma to stay in the same var declaration.
// end with a semi colon.
What do you think, is this a good way to structure your code or am I missing something?