0PricingLogin
Javascript for Kids · Lesson

Comparing Things

Check if values are bigger, smaller, or equal.

Comparing Things ⚖️

Hi, comparing champion! 🌟 Today we compare things to see what is bigger, smaller, or the same.

We use >, <, and ===! 🪄

console.log(5 > 3)

Bigger Than > 🐘

The > sign means "bigger than".

10 > 2 is true because 10 IS bigger than 2! Think of a hungry mouth eating the bigger number. 🐊

console.log(10 > 2)

All lessons in this course

  1. Making a Choice with if
  2. Plan B with else
  3. Comparing Things
  4. More Choices with else if
← Back to Javascript for Kids