O'Reilly logo

JavaScript Testing by Liang Yuxian Eugene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Syntax Validation

To build on what we have learned in the previous chapters, we will now move on to a slightly tougher topic—validating JavaScript. In this chapter you can expect two broad topics—the issues surrounding validation and testing of JavaScript code, and how to use JSLint and JavaScript Lint (which is a free JavaScript validator) to check your JavaScript code, and how to debug them. I'll explicitly show you how to spot validation errors using JSLint and then, how to fix them.

We will briefly mention the difference between validating and testing JavaScript and some of the issues that you might have to consider when you are validating or testing your code. You will also understand the relationship between valid HTML and CSS ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required