📦 Variables & Data Types
Learn how to store and work with different types of data in your programs
⏱️ 2 hours📚 7 sections⭐ Beginner
Your Progress
0 / 7 completed📚 Lessons
📦
What are Variables?
Variables are like containers that store information in your program. Think of them as labeled boxes where you can put different types of data - numbers, text, true/false values, and more!
💻 Code Example:
// Creating variables with 'let' let username = "Player1"; let score = 100; let isActive = true; // You can change the value later score = 150; console.log(score); // Shows: 150
💡 Tip: Open your browser console (F12) and try typing these examples!
📝 Key Points:
- •Variables store data in your program
- •Use descriptive names for variables
- •Variable values can be changed