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
- Making a Choice with if
- Plan B with else
- Comparing Things
- More Choices with else if