how to scan javascript code to find errors (are there any programs do that)?
how to scan javascript code to find errors开发者_StackOverflow中文版 (are there any programs do that) ?
Load it into Firefox, and use Firebug plugin. It enables you to debug JavaScript, and to see where errors are located in your code.
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.
You can use JSLint, and of course Firebug
精彩评论