JSLint

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.

Understanding JavaScript Promises E-book Cover

Demystify JavaScript promises with the e-book that explains not just concepts, but also real-world uses of promises.

Download the Free E-book!

The community edition of Understanding JavaScript Promises is a free download that arrives in minutes.