![CS Principles 2019-2020 5.8: Boolean Expressions and "if" Statements](https://resourcebank.ca/static/newdesign/images/materials/default-thumbnail-index.png)
In this lesson, students write `if` and `if-else` statements in JavaScript for the first time. The concepts of conditional execution should carry over from the previous lesson, leaving this lesson to get into the nitty gritty details of writing working code. Students will write code in a series of "toy" problems setup for them in App Lab that require students to do everything from debug common problems, write simple programs that output to the console, or implement the conditional logic into an existing app or game, like "Password Checker" or a simple Dice Game. The lesson ends with a problem requiring nested `if` statements to foreshadow the next lesson.
- Subject:
- Coding
- Computer & Digital Technologies
- Computer Science
- Education
- Educational Technology
- Math
- Science
- Material Type:
- Activity/Lab
- Lesson
- Provider:
- Code.org
- Provider Set:
- CS Principles 2019-2020
- Date Added:
- 10/11/2019