Chapter 4: Making Choices and Decisions

Javascript Conditional StatementsCongratulations, we’ve covered a lot in the previous chapters. This is going to be a relatively long chapter too, so be prepared. 🙂

In this chapter, we’ll look at how to control the flow of our program. Specifically, we’ll be looking at loops and conditional statements.

However, before we go into these control flow tools, we have to first look at comparison and logical operators. All control flow tools involve making some form of comparison. The program will proceed differently depending on whether a certain condition is met.