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. Invalid Answer

Exercise: Number Order