📦 Lesson 2: Memory Boxes (Variables)

Learn how computers remember things using special storage boxes!

What are Variables?

Variables are like labeled boxes where computers store information. Just like you might have a toy box labeled "LEGOS", computers have memory boxes with names!

🏷️ Every Box Needs a Name

When we create a variable, we give it a name so we can find it later. Good names describe what's inside!

📦 Real Life Example: Your Backpack

Your backpack has different pockets for different things:

  • pencilCase → Contains pencils and pens
  • lunchBox → Contains your lunch
  • waterBottle → Contains water

Variables work the same way in programming!

🎮 Interactive Memory Demo

Click on memory boxes below to see how computers store data:

Your Variables:

📚 Key Words to Remember