Unit 3: Boolean Expressions

Boolean expressions help to detect the state of certain values and return true or false based on the results.
In this unit, we reviewed basic conditionals as well as complex conditionals and how to properly use them in simple programs.

An example of a basic boolean expression in a conditional:

if (x == true) {
  runCode();
} else {
  dontRunCode();
}
          


Back