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.

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.

Try CodeMonkey at home or at school!

free trial

or

for your school / district

More to explore:

Table of Contents

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
AND LEARN MORE ABOUT CODING FOR KIDS.