Please enable JavaScript to use CodeHS

Intro to Programming in JavaScript with Arduino

JavaScript Control Structures

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

Lessons

6.1 Booleans

  • Booleans
  • Booleans Quiz
  • First Boolean
  • Do You Have a Dog?

6.2 Logical Operators

  • Logical Operators
  • Logical Operators Quiz
  • Light Switch
  • President
  • Wasting Time
  • +2 more

6.3 Comparison Operators

  • Comparison Operators
  • Comparison Operators Quiz
  • Voting Age
  • Grade Range
  • Rolling Dice
  • +1 more

6.4 If Statements

  • If Statements
  • If Statements Quiz
  • Negative Numbers
  • Great Names
  • Even and Odd
  • +5 more

6.5 For Loops in JavaScript

  • Basic For Loop
  • For Loops Quiz
  • For Loop
  • Chalkboard
  • The Worm
  • +1 more

6.6 General For Loops

  • General For Loop
  • General For Loop Quiz
  • Countdown
  • Count By Twos
  • Count By Sevens
  • +1 more

6.7 For Loop Practice

  • For Loop Examples
  • For Loop Examples Quiz
  • For Loop Sum
  • Better Sum
  • Factorial
  • +1 more

6.8 Random Numbers

  • Random Numbers
  • Random Numbers Quiz
  • Rolling a Die
  • Flipping a Coin
  • Lots of Rolls
  • +2 more

6.9 While Loops

  • While Loops
  • While Loops Quiz
  • While Loop Countdown
  • Inventory
  • Fibonacci
  • +1 more

6.10 Loop and a Half

  • Loop and a Half
  • Loop and a Half Quiz
  • Adding Up Numbers
  • Snake Eyes
  • Better Password Prompt
  • +1 more

6.11 Javascript Control Structures Quiz

  • JavaScript Control Structures Quiz

Courses that include this module