Login
About
Curriculum
Professional Development
Tutors
Demos
Testimonials
Plans
Sign Up
Login
JavaScript Control Structures
Learn how to use booleans and logical operators with control structures to make more advanced programs in JavaScript.
Sign Up!
Courses
Introduction to Computer Science in JavaScript (Golden)
JavaScript Control Structures
Lesson 1:
Booleans
Booleans
Booleans Quiz
First Boolean
Do You Have a Dog?
Lesson 2:
Logical Operators
Logical Operators
Logical Operators Quiz
Light Switch
President
Wasting Time
Can You Graduate?
School's Out
Lesson 3:
Comparison Operators
Comparison Operators
Comparison Operators Quiz
Voting Age
Grade Range
Rolling Dice
All Star
Lesson 4:
If Statements
If Statements
If Statements Quiz
Negative Numbers
Great Names
Even and Odd
Secret Password
Teenagers
Stop Light
Conditionals Badge
Lesson 5:
For Loops in JavaScript
Basic For Loop
For Loops Quiz
For Loop
Chalkboard
The Worm
Caterpillar
Lesson 6:
General For Loops
General For Loop
General For Loop Quiz
Countdown
Count By Twos
Count By Sevens
Powers of Two
Lesson 7:
For Loop Practice
For Loop Examples
For Loop Examples Quiz
For Loop Sum
Better Sum
Factorial
All Dice Values
Lesson 8:
Random Numbers
Random Numbers
Random Numbers Quiz
Rolling a Die
Flipping a Coin
Lots of Dice
Random Color Square
Randomizer Badge
Lesson 9:
While Loops
While Loops
While Loops Quiz
While Loop Countdown
Inventory
Fibonacci
Lesson 10:
Loop and a Half
Loop and a Half
Loop and a Half Quiz
Adding Up Numbers
Snake Eyes
Better Password Prompt
Looper Badge
Try it!
Check out the programs you'll be able to make
view demos
Learning on CodeHS