Learn How to Compare Values

Our new challenges introduce important computer science topics:

  • not
  • Equals to ==
  • Less than <
  • Return values

Sometimes computers need to compare two values to perform a task only if the values are equal, or if one is bigger than the other. For example:

  • When we play a computer game and lose all our lives, the computer will show a “game over” message when lives equals 0.
  • If we try to log into a website (for example ­ CodeMonkey!) the computer will let us in only if the password entered equals correct password.

To be good coders we also need to know how to use not and how to write functions that return values. Start practicing those skills in the 30 new challenges we just released.