Please enable JavaScript to use CodeHS

Chapter 3

Boolean Expressions and if Statements

3.1 Boolean Expressions

What are Booleans?

Working with Booleans

Comparison Operators

Comparison Operators in a Program

Pitfalls

Old Enough To Vote

Grade Range

Equality of Strings

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Number Order