Please enable JavaScript to use CodeHS

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #}

Chapter 3

Boolean Expressions and if Statements

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 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 Exercise: Number Order
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 3.2 if Statements and Control Flow The if Statement Program Flow Can Vote Negative Numbers Rectangle Check Your Understanding Exercise: Discounts
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 3.3 if-else Statements Else Statements Bill with Added Tip Even and Odd Check Your Understanding Exercise: Battleships Move
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 3.4 else if Statements if/else/else if Statements Add Tip Add Tip - 8 or 4 Customers Add Tip - 8, 4, 2 Customers Check Your Understanding Exercise: Salmon Spawn
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 3.5 Compound Boolean Expressions What Are Logical Operators? The AND Operator The OR Operator Short Circuit Evaluation The NOT Operator Order of Operations Light Switch Number in Range Pizza Slices Check Your Understanding Exercise: Compound Roller Coaster
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 3.6 Equivalent Boolean Expressions De Morgan and His Law A Closer Look at De Morgan's Law Applying Truth Tables to Other Expressions De Morgan AND De Morgan OR Check Your Understanding Exercise: Amusement Park
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 3.7 Comparing Objects Comparing Objects with == and != Comparing Using .equals() Comparing Strings Comparing Rectangles Null Test Identify Aliases Check Your Understanding Exercise: Three Strings