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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.