Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Control flow

Comparisons Operators II

There are two more extremely useful comparisons we can make. Often times, we might want to check if two things are equal, or if they are not.

  1. To check if two things equal each other, we can use === (three equals in a row).
  2. To check if two things do not equal each other, we can write !== (exclamation with two equals in a row).

Slow down here, this can be easily confused with creating variables. Variables use one equals sign = to assign a value to a variable. When you're comparing two variables, make sure to use three ===.

How can we utilize === or !== and an if/else statement to write a program to see whether a werewolf will turn into its wolf form this evening?

Report a Bug
If you see a bug or any other issue with this page, please report it here.