UPDATE 8/22/2011: found http://jshint.com, it looks much better than http://jslint.com/. Source: about 2 years ago
Use https://jslint.com to find the unescaped quote or whatever that's invalidating the file. Remember to put quote marks in dialogue as \". Source: over 2 years ago
Ooh! I'm pretty sure I actually know this one! I watched a bunch of Douglas Crockford talk's at Yahoo! Talking about the weirdness of the language he helped develop (such as this one). He also has built JSLint to help pull out code that runs but can have unexpected results. Booleans in JS evaluate if something is truthy or falsy and undefined is falsy (19:20), however a string of "undefined" would be truthy, and... Source: over 2 years ago
For future, just pop your code into an HTML Validator, a JS Linter, or a CSS Linter and it will check for basic stuff like this. There are also plugins in most IDEs for these kind of things which are incredibly useful. Source: about 3 years ago
Do you know an article comparing JSLint to other products?
Suggest a link to a post with product alternatives.
This is an informative page about JSLint. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.