Every once in a while I come across a JavaScript creation, utility, or tool and I wonder, “how did I not know this existed?” I mean, I’ve worked with JavaScript on a daily basis for four years and still I find stuff online that I’ve never seen before. Today’s discovery: JSLint.

As the author, Douglas Crockford, says:

When C was a young programming language, there were several common programming errors that were not caught by the primitive compilers, so an accessory program called lint was developed which would scan a source file, looking for problems…A lint for JavaScript is needed.

JSLint is essentially a tool that looks for common problems in JavaScript and spits out an error report. The fascinating part of it (to me, at least) is that JSLint is actually written in JavaScript, which basically means that it is a JavaScript parser written in JavaScript…how cool is that? I truly commend Douglas for making such a useful tool, I’ll be using it often from now on.

Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.

Both comments and pings are currently closed.