Chapter 4

Testing JavaScript

Learning Objectives

By the end of this chapter, you will be able to do the following:

  • Analyze the benefit of tests
  • Explain the various forms of code testing
  • Build code-testing environments
  • Implement tests for your JavaScript code

This chapter will cover the concepts of testing, test frameworks, and how to work with the different ways to effectively testing code.


In the first chapter, we covered many of the new and powerful features released in ES6. We discussed the evolution of JavaScript and highlighted the key additions in ES6. We discussed scope rules, variable declaration, arrow functions, template literals, enhanced object properties, destructuring assignment, classes and modules, transpiling, ...

Get Advanced JavaScript now with O’Reilly online learning.

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