Ajax-loader-large-white
More on Control Flow in JS
Overview

So far we've seen how to control our programs given a single condition: whether one variable is equal to a certain value, for instance. But what if we want to check more than one variable?

For this, we'll need logical operators. JavaScript has three: and (&&), or (||), and not (!).

Using these, we can check several variables at once! Check out the code in the editor.

Instructions

Starting to make sense? Set both variables in the editor to true and hit Save & Submit Code to see what happens!

script.js