Learn How to Compare Values

Share on facebook
Share on twitter
Share on linkedin
Share on email
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.

Try CodeMonkey at home or at school!

free trial, credit card not required


for your school / district

More to explore:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to CodeMonkey's blog

Stay Up To Date on The Latest NEWS