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 ...

Get HTML5 and CSS3 All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.