Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Summary

In this hour, you've learned to use JavaScript statements such as if and else to test and compare values. You've also learned a quick way to test values with the ? operator, and used the switch statement to test for a number of different values. Finally, you've applied this knowledge by asking the user a question and testing the answer.

In the next hour, you'll learn another fundamental JavaScript programming tool, loops, which you can use to make JavaScript perform repetitive tasks without repetitive typing.

Share ThisShare This

Informit Network