• Unit 4: Conditional Statements and Control Flow

    In this unit, we explore JavaScript conditional statements. Conditions allow you to write code that performs actions based on different decisions. All day, we make decisions in every facet of life, and conditions allow our code to return a result based on the input of a situation, the decision, and the correct output. For example, you might create a tip calculator, and if (condition) the service was excellent, you would want to calculate a higher percentage tip. We will explore many conditional statements, including loops that repeat a condition until some parameter occurs. For example, while (condition) it is raining, I will wait to plant flowers in the garden, and then when it is not raining, I will plant flowers. 

    Completing this unit should take you approximately 2 hours.

    • 4.1: Introduction to Conditional Statements

    • 4.2: Selection Control Statements

    • 4.3: Looping Statements

    • Study Session Review Video

    • Unit 4 Assessment

      • Receive a grade