Please enable JavaScript to use CodeHS

Texas Computer Science I

Control Structures

Students learn how to use control structures such as if/else statements and loops to make advanced programs in JavaScript.

Lessons

8.1 Booleans

  • Booleans
  • Boolean Exploration
  • Booleans Quiz
  • Do You Have a Dog?
  • Booleans are Questions
  • +3 more

8.2 If/Else Statements

  • If Statements
  • If Statements Quiz
  • Are You Logged In?
  • Is It Raining?
  • Mood Playlist
  • +1 more

8.3 Logical Operators

  • Logical Operators
  • Logical Operators Quiz
  • Light Switch
  • Harry Potter
  • Weak Password
  • +4 more

8.4 Comparison Operators

  • Comparison Operators
  • Comparison Operators Quiz
  • Great Names
  • Grade Range
  • Even and Odd
  • +4 more

8.5 Graphics and Conditionals

  • Graphics and Conditionals
  • Circle or Rectangle?
  • Correct or Incorrect?
  • Else If Statements
  • Conditional Circle Color
  • +3 more

8.6 While Loops

  • While Loops
  • While Loops Quiz
  • While Loop Countdown
  • Debugging: Best Name Ever
  • Level Up
  • +1 more

8.7 The Break Statement

  • The Break Statement
  • The Break Statement Quiz
  • Adding Up Numbers
  • Break Statement Reflection
  • Snake Eyes
  • +2 more

8.8 While Loops and Graphics

  • While Loops and Graphics
  • Lots of Circles
  • Corners on Corners
  • Concentric Circles
  • Debugging: Circle Positions
  • +1 more

8.9 For Loops

  • For Loops
  • For Loop Exploration
  • Chalkboard
  • Count By Twos
  • Eating Apples
  • +5 more

8.10 For Loops and Graphics

  • For Loops and Graphics
  • Lots of Circles Revisited
  • Exploration: Confetti
  • Using i to Position Objects and Adjust Size
  • Horizontal Stripes #1: Using i to Adjust Position
  • +4 more

8.11 Javascript Control Structures Quiz

  • JavaScript Control Structures Quiz

Courses that include this module