Find JS Code Issues and Errors With JSLint

HOWTOs Javascript Web Development

Ever have a page not load properly in IE 7 but it loads fine – without error – with all other browsers? After you validate all your CSS/HTML and the error or funky behavior persists…and you have made sure your doctype is correct – what can you do? Validate your JS using JS Lint.

What is JSLint?

JSLint is a JavaScript program that looks for problems in JavaScript programs. It is a code quality tool.

I just got done with some cross browser consulting (my favorite) – and one of the pages would not load properly in IE 7 due to a JS error which did not make sense to me. I loaded up the offending JS in JSLint and within a few minutes – I figured out what the issue was and how to solve it.

JSLint is invaluable if you do any work with JS – so keep the link handy! You will thank me – and JSLint.

Leave a Reply

Your email address will not be published.
*
*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Life

Jappler Recommends: Mr. Duct

After living in our home for over 5 years and having done some construction/having dogs and cats we decided to get our air ducts cleaned. I did some initial research last week and after talking to the people at Mr. Duct I decided to go with them. They were not the cheapest – but they […]

CSS HOWTOs Web Development

HOWTO: Target Firefox for Specific CSS

Generally – the best way to handle CSS is to keep it simple, clean, and without any hacks. From now and again there are some times when I need to write CSS specific to IE (using conditional comments). I recently came across a site where I needed to target Firefox because of a width issue. […]