What Is a Variable?
A variable is like a labelled jar in your brain’s kitchen. You use it to store something for later — a number, a word, or even a list. In JavaScript, it looks like this:
let name = "James";▪ let declares the variable
▪ name is the variable name
▪ "James" is the value
Why do we care? Because variables are everywhere. They help us hold and reuse information across a program.
Challenge: Write three variables: your name, your favourite number, and something you love.
let myName = "Jamie";
let favoriteNumber = 42;
let favoriteThing = "ramen";
🧠 If your brain is a kitchen, variables are the labelled jars on the shelves.
📚 Further Reading:
▪ MDN Docs – let
▪ W3Schools – JavaScript Variables
Come back tomorrow for Day 2!
Subscribe to my feed to follow along. I’ll keep the lessons short and sweet.
Leave a Reply