Learn how to compare values

Our new challenges introduce important computer science topics:

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

comparisons
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.

comparisons
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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s