views:

271

answers:

0

Possible Duplicate:
Common programming mistakes for JavaScript developers to avoid?

This is kind of a subjective question, but I am hoping the well-tenured programmers might know of solutions.

I have noticed now predominately in javascript, or any .js file that causes an error can halt further js from running. This could be a $variable undefined in line xx error and many others.

I know of jslint and a few other tools to help prevent this from new code, but what happens in most cases working with other code that doesn't have this kind of "scrub", there could be tons of issues like this, or could cause this, ad nauseum... its far to often I just see plain bad code.

So really what I'm looking for are the most common mis-uses of javascript and how to fix them

thanks!