Only using one 'var' is a best practice to prevent problems related to
'variable hoisting'

This link provides a good explanation/video:
http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-javascript-hoisting-explained/

Not sure about the online tool, but I assume you can download jslint
and set it up on your own system, there should be options to configure
it. If you happen to be using VS2010 there is a good plugin that
integrates jslint and also allows you to turn various options on and
off.

http://jslint4vs2010.codeplex.com/

Hope this helps!

-- 
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