Skip to main content
🌱 Coding Level 1: First Steps 🌱

True or False? βœ…

Computers can compare two numbers and answer with true or false. A true/false value even has a special name: a boolean.

Here are the comparing tools:

  • > means greater than (bigger)
  • < means less than (smaller)
  • === means exactly equal
5 > 3     // true  (5 is bigger than 3)
2 > 10    // false (2 is not bigger than 10)
4 === 4   // true  (4 is exactly 4)

Try reading each one in the quiz below. πŸ‘‡

Is 5 > 3 true or false?

Is 2 > 10 true or false?

=== checks if two things are:

Is 4 === 4 true or false?