Reputation: 19651
how to scan javascript code to find errors (are there any programs do that) ?
Upvotes: 0
Views: 1697
Reputation: 14123
Yes, a number of programs have plugins etc that can be used to detect common errors and syntax problems.
If I were you I would start here, JS Lint or here
In addition, each most browsers have a Javascript console where you can see errors reported and debug your code. Safari and Chrome have it in-built, for Firefox download Firebug.
Upvotes: 1
Reputation: 3873
Load it into Firefox, and use Firebug plugin. It enables you to debug JavaScript, and to see where errors are located in your code.
Upvotes: 2