CSE 121B: JavaScript Language

JavaScript Conditions and Branching

Overview

There are common control structures in all programming languages that allow you to control the flow of the program including sequence, branching, looping, and functions. In JavaScript, these decision blocks are the if, else, else if, switch, and case statements. These statements allow you to control the flow of the program based on the Boolean result of a condition.

Prepare

  1. Read and Practice 📄Conditionals and Branching - byui-cit.github.io
  2. Reference: 📑Making decisions in your code - conditionals - MDN web docs

Check Your Understanding

  1. JS Operators - Post your finished activity work to your cse121b GitHub Pages enabled space.