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
- Variable: A named container for storing data
- Value: The information stored in a variable
- Memory: Where computers store data temporarily