-
Notifications
You must be signed in to change notification settings - Fork 6
Lesson 2 (Conditionals & Debugging)
Courtney Frey edited this page Apr 13, 2022
·
3 revisions
- The boolean data type and boolean expressions
- Logical operators (
>
,<
, etc.) and==
vs.===
- Logical
AND
,OR
, andNOT
-
if / else if / else
statements - Three common error types (syntax, runtime, logic)
- How to use
console.log
to help debug code
- Note the due date for the first graded assignment (should be 2 - 4 weeks away).
- Assignment 1 has been broken into 3 parts. Check Canvas for the due dates for each part.
- The assignment will be active in Canvas soon, and the students will know enough after lesson 2 to begin the first part of the assignment.
- Welcome to Day 2
- Q & A from the prep work and/or exercises.
- Recommend walking through the debugging exercises to reinforce how to spot the different error types, how to use error messages to find bugs, and how to systematically find and fix logic errors.
- Emphasize why
===
should be used instead of==
. - Review the meaning of the truth tables for logical
AND
and logicalOR
. - Clarify with live coding examples:
- The difference between an
if / else if
block and two successiveif
blocks - Nested conditionals
- Check multiple conditions with
&&
and||
- When would we use
!
?
- The difference between an
- The studio is a non-coding activity.
- Refer to the TF Notes and prepare a brief intro about why this activity will benefit the students.
- Even though this is a non-coding studio, it requires more preparation and thought than usual.
- The studio helps the students build confidence and identify what they want to get out of this class, so it is critical that you play your part well.
- Refer to the notes you received from LaunchCode as you prepare for and run the studio. You can also access the notes here.