O'Reilly logo

HTML5 and CSS3 All-in-One For Dummies, 3rd Edition by Andy Harris

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

Chapter 3

Decisions and Debugging

In This Chapter

arrow Making decisions with conditions

arrow Working with nested if statements and switch

arrow Repeating with for loops

arrow Repeating with while loops

arrow Understanding the difference between bugs and crashes

arrow Using the debugger console

arrow Debugging your programs

Computer programs are complex. They involve information. Variables (described in Chapter 1 of this mini-book) are the foundation of information (although you'll learn about some more complex and interesting data types in later chapters). The other key component of programming is control — that is, managing the instructions needed to solve interesting complex problems. In this chapter, you learn the key control structures — if statements and looping structures. With increased control comes increased opportunity ...

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