CSCI 185: Fall 2022

Introduction to Programming for the Web

CSCI 185: Fall 2022

Fish by @akeatk

Lectures > 13. Conditional logic

In this lesson, we’re going to go over conditional logic, which will allow you to write programs that have different outcomes depending on the data, events, and/or user interactions that take place as your program executes. This is often referred to as your program’s “state.” Specifically, we’ll cover: (a) if, if / else, if / else if /else statements, (b) comparison operators, and (c) scenarios where you might want to use conditional statements.

Today's Activities

For today, please do the following:

1. Download the Exercise Files

Exercise Files

2. Complete the Assigned Readings

  1. How To Write Conditional Statements in JavaScript. Digital Ocean

3. Review the Slides

  1. Conditional Statements

4. Watch the Lecture Video(s)

Link Title Type Duration
Video 1 Intro to Conditionals lecture 1:10:37