By the end of this lesson, you'll be able to:
- Understand the three types of control flow and their importance in programming.
- Use comparison operators to compare data.
- Create conditional statements to control the flow of your program.
- Write
forloops andwhileloops.
It would be nice if we could tell computers to make us the perfect sandwich, but that’s beyond what we can ask from our electronic friends right now. What we can do, however, is tell them to make decisions based on certain conditions using logic. You’d be surprised how much computers can get done just by comparing things to each other. Let’s see how that works.
| Lesson | Skills & Learning Objectives |
|---|---|
| Concepts | Understand the three types of control flow and their importance in programming. |
| Comparison in JavaScript | Use comparison operators to compare data. |
| Conditionals | Create conditional statements to control the flow of your program. |
| Loops | Write for loops and while loops. |
