Variable declaration using var
📖 Scenario: Imagine you are organizing a small party. You want to keep track of the number of guests coming and the name of the party.
🎯 Goal: You will create variables using var to store the party name and the number of guests, then display them.
📋 What You'll Learn
Use
var to declare variablesAssign exact values to variables as instructed
Print the variables to show their values
💡 Why This Matters
🌍 Real World
Variables help store information like names and counts in many programs, such as event planners or games.
💼 Career
Understanding variable declaration is a basic skill for any programming job, enabling you to store and manage data.
Progress0 / 4 steps