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—getting the correct values in the correct places

In this example, you will see a general integration of the techniques that you have learned so far. You will learn how to access form values, manipulate them, perform operations on them, and finally, put the new output on other parts of the webpage. To help you better visualize what I am about to describe, following is a screenshot of the completed example:

Time for action—getting the correct values in the correct places

The example that you are about to use is a simple JavaScript program that checks to see if you can retire at the age that you want to. It will request some basic information from you. Based on the information provided, it will determine ...

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