Northcentral Technical College Introduction To Programming
10-152-310
Introduction to Programming with JavaScript NTC 10-152-310

Learning Plan 4 Simple if Statements

# Simple if Statements

### The `if` Statement

### What is "`some condition?`"

- After the `if` comes a boolean expression, something that's either `true` or `false`. We looked at that in learning unit 2. All equality and relational operators can be used.

### What happens?

- The code inside of the curly braces (`{}`) will be run if the boolean expression is `true`.

### Full Simple `if` Example

- Example: Selection Algorithm

### Now some Labs, of course.

- "The only thing that interferes with my learning is my education" - Albert Einstein

- 4.2 Lab 1
- 4.2 Assignment 1
- 4.2 Lab 2
- 4.2 Assignment 2