CHAPTER 3

image

Writing High-Quality JavaScript

There is no such thing as bug-free software, and the more unknowns about the system running your software, the greater the likelihood of errors occurring. As JavaScript developers, we write code to be run within at least five major web browsers, the majority of which have fairly rapid release schedules. Couple this moving target with the fact that a single error in JavaScript code within a browser has the potential to stop all other JavaScript within that page functioning, and you can see the challenge we have to write high-quality, bug-free code.

The purpose of this chapter is to help you write high-quality ...

Get Pro JavaScript Development: Coding, Capabilities, and Tooling now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.