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

Time for action—unobtrusively checking what values are used

As mentioned above, we'll be demonstrating a very simple debugging function that helps you to identify which code is running and also which HTML element is in use. Here, you'll get a basic idea of some of the actions that you can perform in order to have a less obtrusive way of testing your code.

Again, this example is similar to the previous one, but there are some important elements that which we will be adding to the previous example. In essence, we will be adding a function, some HTML, and CSS to it.

However, you might find it tedious to refer back to the previous example and add the new elements to the previous example. Therefore, it is recommended that you stay with me on this example. ...

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