Chapter 3
Decisions and Debugging
In This Chapter
Making decisions with conditions
Working with nested if statements and switch
Repeating with for loops
Repeating with while loops
Understanding the difference between bugs and crashes
Using the debugger console
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.