javascriptjavascript-debugger

How to check client-side JavaScript code for syntax errors?


I have some client-side JavaScript code and want to check that file for syntax errors/warnings.

What is the easiest way to check my JavaScript file for "compile time" errors, such as a mismatched bracket or a keyword typo?


Solution

  • Copy and paste it into http://www.jslint.com/ but be prepared to "have your feelings hurt".