Please enable JavaScript to use CodeHS

Introduction to Computer Science in JavaScript (Golden) (2022)

Lesson 5.4 If Statements

Description

In this lesson, students learn about if statements as a way to make decisions and execute specific code depending on the validity of a condition.


Objective

Students will be able to…

  • Explain the purpose of if statements
  • Create their own if statements to selective choose which code is executed in their programs