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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.